|
From: Nord Pierre on 5 May 2008 04:37 Hello, A new problem appear only on vista (works under XP) - When i create a popup window with an opengl context and when i set this window to full screen, like that : SetWindowPos(&wndTop,0,0,GetSystemMetrics(CX_SCREEN),GetSystemMetrics(CY_SCREEN),SWP_SHOWWINDOW); It works under XP and totaly explode the frame rate under Vista (stats fall down from 150 fps to 20 fps), i've made many test and found that this problem does not appear when i : - First get the work area with SystemParametersInfo(SPI_GETWORKAREA,0,&rect,0) - Set the windows position like that : SetWindowPos(&wndTop,1,1,rect.Width()-2,rect.Heigth()-2,SWP_SHOWWINDOW). Of course the window appear in full screen and the taskbar is not cover by anything, so the fps are again close to 150fps... I don't get it, each time the taskbar is touched, there is a problem with the performances, is it a driver pb or is it soemthing else ? Thanks
From: Joseph M. Newcomer on 5 May 2008 10:19 No idea about the frame rate, but you should make sure you can run in a multimonitor environment; your calls give the size of the primary monitor, which may not be the monitor that is running the application. joe On Mon, 5 May 2008 10:37:34 +0200, "Nord Pierre" <non> wrote: > > Hello, > > A new problem appear only on vista (works under XP) - When i create a >popup window with an opengl context and when i set this window to full >screen, like that : > > SetWindowPos(&wndTop,0,0,GetSystemMetrics(CX_SCREEN),GetSystemMetrics(CY_SCREEN),SWP_SHOWWINDOW); > > It works under XP and totaly explode the frame rate under Vista (stats >fall down from 150 fps to 20 fps), i've made many test and found that this >problem does not appear when i : > > - First get the work area with >SystemParametersInfo(SPI_GETWORKAREA,0,&rect,0) > - Set the windows position like that : >SetWindowPos(&wndTop,1,1,rect.Width()-2,rect.Heigth()-2,SWP_SHOWWINDOW). > > Of course the window appear in full screen and the taskbar is not cover >by anything, so the fps are again close to 150fps... I don't get it, each >time the taskbar is touched, there is a problem with the performances, is it >a driver pb or is it soemthing else ? > > Thanks > Joseph M. Newcomer [MVP] email: newcomer(a)flounder.com Web: http://www.flounder.com MVP Tips: http://www.flounder.com/mvp_tips.htm
From: Bob Moore on 5 May 2008 13:54 On Mon, 5 May 2008 10:37:34 +0200, Nord Pierre wrote: >It works under XP and totaly explode the frame rate under Vista (stats >fall down from 150 fps to 20 fps) I wonder if this is something to do with Vista's maximised window detection ? You'll note that the taskbar stops being translucent when a window is maximised. What happens the the frame rate if you create the window smaller and then properly maximise it, as opposed to programmatically calling SetWindowPos? -- Bob Moore http://bobmoore.mvps.org/ (this is a non-commercial site and does not accept advertising) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Do not reply via email unless specifically requested to do so. Unsolicited email is NOT welcome and will go unanswered. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: Nord Pierre on 5 May 2008 16:19 It's a good analyse, but it doesn't work, it's even worth with SendMessage(WM_SYSCOMMAND,SC_MAXIMIZE,0); On Xp, I still have about 180Fps and with this method i have 13Fps on Vista... I forgot to say that it's a popup without title bar, without borders (a naked window - which got cold on vista) Pierre ... <Bob Moore> a �crit dans le message de news: j6iu14dok1qnce7f7tk9i5q0eqd40cr6na(a)4ax.com... > On Mon, 5 May 2008 10:37:34 +0200, Nord Pierre wrote: > >>It works under XP and totaly explode the frame rate under Vista (stats >>fall down from 150 fps to 20 fps) > > I wonder if this is something to do with Vista's maximised window > detection ? You'll note that the taskbar stops being translucent when > a window is maximised. > > What happens the the frame rate if you create the window smaller and > then properly maximise it, as opposed to programmatically calling > SetWindowPos? > > > -- > Bob Moore > http://bobmoore.mvps.org/ > (this is a non-commercial site and does not accept advertising) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Do not reply via email unless specifically requested to do so. > Unsolicited email is NOT welcome and will go unanswered. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: Nord Pierre on 5 May 2008 16:23 You're right, i'll take care of multimon. Thanks for the tip (even if it doesn't resolve my pb:) Pierre "Joseph M. Newcomer" <newcomer(a)flounder.com> a �crit dans le message de news: op5u14dae8ns55fo1lf4se44qcdiek4aq4(a)4ax.com... > No idea about the frame rate, but you should make sure you can run in a > multimonitor > environment; your calls give the size of the primary monitor, which may > not be the monitor > that is running the application. > joe > > On Mon, 5 May 2008 10:37:34 +0200, "Nord Pierre" <non> wrote: > >> >> Hello, >> >> A new problem appear only on vista (works under XP) - When i create a >>popup window with an opengl context and when i set this window to full >>screen, like that : >> >> >> SetWindowPos(&wndTop,0,0,GetSystemMetrics(CX_SCREEN),GetSystemMetrics(CY_SCREEN),SWP_SHOWWINDOW); >> >> It works under XP and totaly explode the frame rate under Vista (stats >>fall down from 150 fps to 20 fps), i've made many test and found that this >>problem does not appear when i : >> >> - First get the work area with >>SystemParametersInfo(SPI_GETWORKAREA,0,&rect,0) >> - Set the windows position like that : >>SetWindowPos(&wndTop,1,1,rect.Width()-2,rect.Heigth()-2,SWP_SHOWWINDOW). >> >> Of course the window appear in full screen and the taskbar is not >> cover >>by anything, so the fps are again close to 150fps... I don't get it, each >>time the taskbar is touched, there is a problem with the performances, is >>it >>a driver pb or is it soemthing else ? >> >> Thanks >> > Joseph M. Newcomer [MVP] > email: newcomer(a)flounder.com > Web: http://www.flounder.com > MVP Tips: http://www.flounder.com/mvp_tips.htm
|
Next
|
Last
Pages: 1 2 Prev: How to do a function, like quick format? Next: Regarding some specificity of RDP login |