Skip to content

Commit

Permalink
PerformanceTestScene: add 2 methods to the interface
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Jan 31, 2025
1 parent b441dee commit 08ff873
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ of this software and associated documentation files (the "Software"), to deal
*/
package testjoltjni.app.performancetest;
import com.github.stephengold.joltjni.PhysicsSystem;
import com.github.stephengold.joltjni.TempAllocator;
import com.github.stephengold.joltjni.enumerate.EMotionQuality;
/**
* A line-for-line Java translation of the Jolt Physics performance test-scene interface.
Expand All @@ -39,6 +40,12 @@ interface PerformanceTestScene
// Start a new test by adding objects to inPhysicsSystem
void StartTest(PhysicsSystem inPhysicsSystem, EMotionQuality inMotionQuality) ;

// Step the test
default void UpdateTest( PhysicsSystem inPhysicsSystem, TempAllocator ioTempAllocator, float inDeltaTime) { }

// Update the hash with the state of the scene
default long UpdateHash(long ioHash) {return ioHash;}

// Stop a test and remove objects from inPhysicsSystem
default void StopTest(PhysicsSystem inPhysicsSystem) { }
};

0 comments on commit 08ff873

Please sign in to comment.