Optimizations (#168)
- Optimize contact prepare - Back to post restitution stage - Optimize solver math - Bug fixes
This commit is contained in:
parent
9e5a4cde86
commit
79fc55976a
55 changed files with 3248 additions and 1519 deletions
|
|
@ -57,12 +57,21 @@ struct SampleContext
|
|||
float hertz = 60.0f;
|
||||
float recycleDistance = 0.05f;
|
||||
float drawDistance = 100.0f; // meters, view/cull box half extent, persisted
|
||||
|
||||
// Camera the sample set up on creation. Home returns to it. Fitting the world bounds instead
|
||||
// can put a scene with a large ground plate beyond the draw distance.
|
||||
b3Pos homePivot = {};
|
||||
float homeYaw = 0.0f;
|
||||
float homePitch = 0.0f;
|
||||
float homeRadius = 0.0f;
|
||||
int subStepCount = 4;
|
||||
int restitutionIterations = 2;
|
||||
int workerCount = 1;
|
||||
bool transparentDynamic = false;
|
||||
bool transparentKinematic = false;
|
||||
bool enableWarmStarting = true;
|
||||
bool enableContinuous = true;
|
||||
bool enableRestitutionPropagation = false;
|
||||
bool enableSleep = true;
|
||||
bool pause = false;
|
||||
int singleStep = 0;
|
||||
|
|
@ -150,9 +159,9 @@ public:
|
|||
// framing works regardless of where the cursor sits.
|
||||
virtual b3BodyId FocusBody() const;
|
||||
|
||||
// Frame shortcut with nothing selected: fit the whole scene. Defaults to the live world bounds.
|
||||
// The replay viewer overrides this to fit the recording, whose world is player-owned and separate
|
||||
// from the empty base world.
|
||||
// Home, and the frame shortcut with nothing selected. Defaults to the camera the sample set up on
|
||||
// creation. The replay viewer overrides this to fit the recording, whose world is player-owned and
|
||||
// separate from the empty base world.
|
||||
virtual void FocusHome();
|
||||
|
||||
// Arm recording on the live world, snapshotting it as the seed so capture can begin at any
|
||||
|
|
@ -271,6 +280,9 @@ int RegisterReplay( const char* category, const char* name, SampleCreateFcn* fcn
|
|||
// by leaving the restart flag set while the new sample constructs.
|
||||
void SelectSample( SampleContext* context, int selection, bool restart );
|
||||
|
||||
// Frame the selection, or go home when nothing is selected
|
||||
void FrameSelection( SampleContext* context );
|
||||
|
||||
// Run the native "open replay" file picker and, on success, hand the chosen
|
||||
// file to the Replay viewer. Must be called outside the frame (the dialog spins
|
||||
// a blocking nested run loop), driven by SampleContext::openReplayPicker.
|
||||
|
|
|
|||
Loading…
Reference in a new issue