Jump to content

Heavy slowdown when viewport is covered by vista start button


Masterxilo
 Share

Recommended Posts

I just noticed that FPS drop heavily when a window's client area is covered by the vista start orb.

Did anyone ever notice that?

 

(the number in the upper left corner of the following pictures is the UPS of the application)

Window placed normally (viewport not overlapped by vista start icon):

post-150-12652252043335_thumb.jpg

Window placed in such a way that the round part of the start orb covers it

post-150-12652252105469_thumb.jpg

(If a viewport is being covered by the taskbar only, fps stay normal, so it's really the round, transparent start icon that causes this)

 

It looks to me as if the application has to wait for the os to render that small round part of the start button over the viewport. What a waste! Why didn't they stay with the simple rectangular taskbar with a start button that fits in it? Why does it have to overlap???

 

This is nothing le or opengl specific, but obviously happens with any engine and graphics api (tested).

 

So if you make windowed applications: make sure your realtime viewport NEVER covers the vista start button!

---

Use this code if you want to see for yourself:

#include "engine.h"
#include "mathlib.h"

int main(void)
{
   // Init
   Initialize();
   Graphics(640,480);
   TEntity world = CreateWorld();


   // Main Loop
   while(!KeyHit(KEY_ESCAPE) && !AppTerminate())
   {
       UpdateWorld();
       UpdateAppTime();

       RenderWorld();

       DrawText(0,0,"%f",UPS());

       Flip(0);
   }

   // Terminate
   return Terminate();
}

 

I'd appreciate if some people could try that out and report if the experience the same slowdown.

Maybe there's just something bad going on with my vista/opengl/graphics driver/graphics card/computer...

Link to comment
Share on other sites

You could write in the game manual that when using Windows 2000 theme under Vista, your game will run 6 times faster in certain circumstances.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...