Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 552 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, 11honza11, ccorrea, sakolin, rajesh7827
19046 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Script Execution & Screen Refresh Time #24260
03/17/04 05:58
03/17/04 05:58
Joined: Dec 2003
Posts: 61
Funkytown, USA
feature_creature Offline OP
Junior Member
feature_creature  Offline OP
Junior Member

Joined: Dec 2003
Posts: 61
Funkytown, USA
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
Re: Script Execution & Screen Refresh Time [Re: feature_creature] #24261
03/19/04 10:12
03/19/04 10:12
Joined: Dec 2003
Posts: 61
Funkytown, USA
feature_creature Offline OP
Junior Member
feature_creature  Offline OP
Junior Member

Joined: Dec 2003
Posts: 61
Funkytown, USA
Bump.

I'm thinking that there may be a bug in the timing system but before I commit to that I want to know if I'm missing something.

Thanks,
Creature


Curious, but not overwhelmed...demlehwrevo ton tub ,suoiruC
Re: Script Execution & Screen Refresh Time [Re: feature_creature] #24262
03/25/04 07:03
03/25/04 07:03
Joined: Jan 2003
Posts: 710
T
Templar Offline
Developer
Templar  Offline
Developer
T

Joined: Jan 2003
Posts: 710
hi, what did you find out?



Re: Script Execution & Screen Refresh Time [Re: Templar] #24263
03/26/04 13:09
03/26/04 13:09
Joined: Dec 2003
Posts: 61
Funkytown, USA
feature_creature Offline OP
Junior Member
feature_creature  Offline OP
Junior Member

Joined: Dec 2003
Posts: 61
Funkytown, USA
Nada!

Here is my guess about what is going on.

Screen refresh is happening largely in the video hardware while the script execution is happening on the cpu: so you have some parallel processing going on and it is difficult to time these separately. So, I'm guessing that whichever routine returns first gets to be nearly 0, while the other when gets the rest of the time. This would be necessary if all the debug times have to add up to the actual time between frames -- if you time parallel processes the total time would come out too high.

Yeah -- I think parallel processing explains it but the manual should probably explain this when it describes the debug output.



Curious, but not overwhelmed...demlehwrevo ton tub ,suoiruC
Re: Script Execution & Screen Refresh Time [Re: feature_creature] #24264
03/27/04 01:39
03/27/04 01:39
Joined: Jan 2003
Posts: 710
T
Templar Offline
Developer
Templar  Offline
Developer
T

Joined: Jan 2003
Posts: 710
hmmm, that sounds reasonable - I'd love to see some reaction from Conitec though...


Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1