openplanet-nl / issues

Issue tracker for Openplanet.
10 stars 0 forks source link

Weird yield behavior #494

Closed XertroV closed 1 month ago

XertroV commented 1 month ago

Map Together was missing lots of placements and I was not sure why. It's run as a regular coro (no special run context) and the main loop was executing once every ~200ms instead of once per frame.

The fix was replacing yield(); with sleep(0);.

I am very sure that this is the only difference. (swapping which one is commented replicates the behavior)