theRAPTLab / gsgo

GEM-STEP Foundation repo migrated from GitLab June 2023
1 stars 1 forks source link

Workshop Fixes - [merged] #702

Closed benloh closed 1 year ago

benloh commented 2 years ago

Merges dev-bl/next-gui-workshopfixes -> dev-next-gui

Major Fixes

Fixed Multiple Loop Invocation

There was a major bug in the system that was causing the simulation to initiate multiple separate game loops. This should now be fixed.

Char Control

Renaming

Validation

Minor Fixes

Testing

For future reference, an easy way to test for multiple loops is to add a logger in one of the feature update loops, e.g. in feat-physics:

function m_Update(frame) {
  console.error('PHYSICS update', frame)

If you get multiple updates either with the same frame count or with multiple overlapping frame counts, then there's something wrong. e.g. This suggests that there are two loops running:

PHYSICS update 0
PHYSICS update 0
PHYSICS update 1
PHYSICS update 1

e.g. this suggests a third loop was invoked:

PHYSICS update 123
PHYSICS update 123
PHYSICS update 0
PHYSICS update 124
benloh commented 2 years ago

added 1 commit

Compare with previous version

benloh commented 2 years ago

In GitLab by @daveseah on Jul 24, 2022, 13:28

seems to run. did not test script editor

benloh commented 2 years ago

In GitLab by @daveseah on Jul 24, 2022, 13:28

mentioned in commit b59a760d415c7e6848f3a854678314496919caa7