public static void main(String[] args) throws Exception { MappedObjectTransformer.register(MappedFloat.class); MappedObjectTransformer.register(MappedVec2.class); MappedObjectTransformer.register(MappedVec3.class); MappedObjectTransformer.register(MappedSomething.class); MappedObjectTransformer.register(MappedObjectTests3.Xyz.class); MappedObjectTransformer.register(MappedObjectTests4.MappedPointer.class); MappedObjectTransformer.register(MappedObjectTests4.MappedCacheLinePadded.class); MappedObjectTransformer.register(MappedObjectTests4.MappedFieldCacheLinePadded.class); if ( MappedObjectClassLoader.fork(TestMappedObject.class, args) ) { return; } MappedObjectTests1.testViewField(); MappedObjectTests2.testFields(); // MappedObjectBench.benchmarkMapped(); // MappedObjectBench.benchmarkInstances(); // MappedObjectBench.benchmarkIndirectArray(); // MappedObjectBench.benchmarkDirectArray(); // MappedObjectBench.benchmarkUnsafe(); MappedObjectTests3.testMappedBuffer(); MappedObjectTests3.testForeach(); MappedObjectTests3.testConstructor(); MappedObjectTests3.testMappedSet(); MappedObjectTests4.testLocalView(); //MappedObjectTests4.testLWJGL(); MappedObjectTests4.testPointer(); MappedObjectTests4.testCacheLineAlignment(); MappedObjectTests4.testCacheLinePadding(); MappedObjectTests4.testCacheLinePaddingPOJO(); System.out.println("done"); }
public static void main(String[] args) { MappedObjectTransformer.register(Pixel4b.class); MappedObjectTransformer.register(Pixel3b.class); MappedObjectTransformer.register(Sprite.class); MappedObjectTransformer.register(SpriteRender.class); if ( MappedObjectClassLoader.fork(SpriteShootoutMapped.class, args) ) return; try { new SpriteShootoutMapped().start(); } catch (LWJGLException e) { e.printStackTrace(); } }