I was working on some physics stuff and I kept running my work in windowed mode -- my script execution time stays at about 1.3-9 ms depending on how many entities I've got spawned and so on -- I'm fine with this rate. The screen refresh time is listed as 0.0-0.1 ms in windowed mode.

When I run the same thing in fullscreen mode -- my script execution time jumps to 13-14 ms but does not change depending on the number of entities I've got spawned. The window refresh time is 0.0 in fullscreen mode here.

Then I noticed something strange (maybe someone else has as well), as I tried to pin down which function was taking all the time, I commented out the most time consuming function and suddenly my script execution time went to nearly zero, but my screen refresh time went to 12-13 ms in full screen mode. In windowed mode my script execution time went to 0, but my screen refresh time went to .7 seconds.

Is it possible that the engine is putting screen refresh time into the bucket for script execution? It seems that it makes it awfully hard to debug if it is...

Any help or insight would be greatly appreciated.




Curious, but not overwhelmed...demlehwrevo ton tub ,suoiruC