1 registered members (AndrewAMD),
841
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
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
OP
Serious User
|
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]
#444155
07/31/14 21:28
07/31/14 21:28
|
Joined: Mar 2011
Posts: 3,150 Budapest
sivan
Expert
|
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 for example on my old pc I got high ref and srv values (really without reason) and slow fps.
|
|
|
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
OP
Serious User
|
OP
Serious User
Joined: Dec 2011
Posts: 1,823
Netherlands
|
Ok I finally found it . It is not who you think it is (or whatever they say in those detectives when they found the murderer):
video_set(sys_metrics(0),sys_metrics(1),0,1);
even in an otherwise totally empty script:
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.
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 (! ). 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:
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.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|