Archived

This topic is now archived and is closed to further replies.

voxatu

Losing performance in windowed mode

Recommended Posts

Hi, all! I have a very strange problem... My 3D-engine (D3D8) works unstable in windowed mode. In fullscreen mode (any resolution), FPS stable for any number of objects in scene. When I run my program in windowed mode (desktop resolution: 1024x768, 32-bit), FPS depends on window size and number of objects in scene. For example, here are some tests on my computer (PII-233, 64MB RAM, GeForce2 MX 32MB, Win98, DirectX8.0a): 1a) Window size 1024x768, 32 bit 3 objects - 117 fps 12 objects - 98 fps 1b) Fullscreen 1024x768, 32 bit 3 objects - 76 fps 12 objects - 76 fps 2a) Window size 800x600, 32 bit 3 objects - 176 fps 12 objects - 107 fps 2b) Fullscreen 800x600, 32 bit 3 objects - 101 fps 12 objects - 101 fps 3a) Window size 640x480, 32 bit 3 objects - 240 fps 12 objects - 108 fps 3b) Fullscreen 640x480, 32 bit 3 objects - 100 fps 12 objects - 100 fps Why so much FPS difference in windowed mode? Maybe I use wrong parameters during initialization? I am not using any GUI functions during rendering; have only one pair of BeginScene/EndScene functions; using mip-mapping. What could be the reasons? Please, help me! ___ The experience can''t be drunk!

Share this post


Link to post
Share on other sites
G''day!

When rendering in Fullscreen, your FPS is capped to your refresh rate. In case 1b your refresh rate is 76Hz. In windowed mode, it will display as fast as it can render. If you add more objects to your scene (enough that it goes below your refresh rate) you''ll see the same slow downs in full screen as windowed.


Stay Casual,

Ken
Drunken Hyena

Share this post


Link to post
Share on other sites
I see.
Thank you very much, DrunkenHyena!!!
I will look for errors in my code and disable V-Sync
And another question: if I set 512x384, FPS dropping down twice:

3 objects: 230 fps
12 objects: 102 fps

Why is so sudden leap?

___
The experience can''t be drunk!

Share this post


Link to post
Share on other sites