Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 841 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
high pan ms/frame without showing panels #444145
07/31/14 14:26
07/31/14 14:26
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Howdy,

With one of my games, the ms/frame 'pan' value under f11 window shows ~15. I have panels (incl. texts) in the game, but the 'show' flag is not set for them (for testing purposes). Removing some of the panels does not seem to help too. I also don't have any screen entities I think (depending a bit on what is exactly meant by that, ent_createlayer?). The cursor is also just a non-transparant 32x32 bmp image.

So do panels eat resources even while they are invisible? Or could it be something else?

Re: high pan ms/frame without showing panels [Re: Reconnoiter] #444147
07/31/14 14:34
07/31/14 14:34
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
that statistics panel is a panel too.


3333333333
Re: high pan ms/frame without showing panels [Re: Quad] #444148
07/31/14 15:00
07/31/14 15:00
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
is this effecting your fps too? check the amount memory your project is using, located under MEMORY MB


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: high pan ms/frame without showing panels [Re: DLively] #444149
07/31/14 15:39
07/31/14 15:39
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Thanks for commenting.

@Quad, it not ~15 in other projects however, in other maps (e.g. directly loading a wmb without a script) it is more like ~1,5.

@DLively, normally 14 mb, but disabling/commenting almost everything it becomes 0 mb with still ms/frame pan == ~15.

Here are screenies (note that it is from the bayimg.com site so the pics don't always work but it is very easy to upload there), click on pic to enlarge (this is without fps max by the way):

http://bayimg.com/IaPmNAAFI
http://bayimg.com/IapMOaaFi

ps: this is on a intel pentium laptop with an integrated graphics card with directx11 but also a high direct9c version.

Last edited by Reconnoiter; 07/31/14 15:43.
Re: high pan ms/frame without showing panels [Re: Reconnoiter] #444152
07/31/14 19:02
07/31/14 19:02
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline
Serious User
DLively  Offline
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Until they start to drop your fps, I dont see any need to worry.

What exactly are you worried about?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: high pan ms/frame without showing panels [Re: DLively] #444154
07/31/14 21:06
07/31/14 21:06
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Well the fps is not that high (between 60-80) for something this simple, so I was/am worried that it will be a bit bad lateron when adding more things. Also this is fullscreen, when setting it to windowed the fps drop to ~45-50 cause of a higher f11 ms/frame ref.

Re: high pan ms/frame without showing panels [Re: Reconnoiter] #444155
07/31/14 21:28
07/31/14 21:28
Joined: Mar 2011
Posts: 3,150
Budapest
sivan Offline
Expert
sivan  Offline
Expert

Joined: Mar 2011
Posts: 3,150
Budapest
geo time in ms for level geometry and sky rendering
ent time for entity rendering
par time for particles rendering
drw time for draw_ functions
pan time for panels, texts and screen entities rendering (and for the 3D card to flush its command buffer)
ref time for screen refresh, monitor sync, and fps_max idling
srv time for entity updates and client/server communication
fnc time for script execution
phy time for physics

so my first guess is a graphics card related issue, but if it is fine with other levels you could strip down the project until you find the reason... so basically I can say nothing clever laugh for example on my old pc I got high ref and srv values (really without reason) and slow fps.


Free world editor for 3D Gamestudio: MapBuilder Editor
Re: high pan ms/frame without showing panels [Re: sivan] #444174
08/01/14 11:17
08/01/14 11:17
Joined: Dec 2011
Posts: 1,823
Netherlands
Reconnoiter Offline OP
Serious User
Reconnoiter  Offline OP
Serious User

Joined: Dec 2011
Posts: 1,823
Netherlands
Ok I finally found it smile . It is not who you think it is (or whatever they say in those detectives when they found the murderer):

Code:
video_set(sys_metrics(0),sys_metrics(1),0,1);



even in an otherwise totally empty script:

Code:
function main()
{	
video_set(sys_metrics(0),sys_metrics(1),0,1);
}



This give a shows a value of 15 after pan in the f11 window. Interesting enough, setting the engine to windowed mode instead of fullscreen sets the value from ~15 to ~1.

Code:
function main()
{	
video_set(sys_metrics(0),sys_metrics(1),0,2); //note the 2 at the end
}



But wait there is moar!

Setting "video_set(sys_metrics(0),sys_metrics(1),0,1);" in my project with panels give 60 fps with the pan value ~15. Setting it to "video_set(sys_metrics(0),sys_metrics(1),0,2);" gives 150 fps (!) with a pan value of ~5. Cause windowed mode is less fps consuming I quess.
But now it gets interesting:

- if I first set the engine to fullscreen with the line above, than later to windowed through an ingame button I will get an fps of 100 and pan value of ~10.
- doing this reversed gives a fps of 60 with a pan value of ~15.
- now adding the line of "video_window(0,0,4 | 16 | 32 | 64 | 128,"blablabla");" after the video_set line, AND setting the engine the windowed (one way or the other) gives a whooping 'ref' (screen refresh etc.) of ~11 (first in windowed this was ~1) and decreases the fps from ~150 to ~45 (! shocked ).

The latter is a huge fps drop, could it be related to maybe cause i have an integrated graphics cards? Anyway that is a huge difference and definitely something to remember for lateron.

-edit, it has got to do with the combination between panels and other stuff that is visible and video_window(....blablaba) that gives such a fps drop. Cause the following code (almost empty script) gives ~500 fps:

Code:
function main()
{	
video_set(sys_metrics(0),sys_metrics(1),0,2);
video_window(0,0,4 | 16 | 32 | 64 | 128,"blablbabla");
}


Last edited by Reconnoiter; 08/01/14 11:22.

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