josericardo_jr

Hi people,

Hi run some application with comes with DirectX SDK and both Managed and Unmanaged application's FPS stay the same. But when I run Managed application in fullscreen, it decrease a lot. It doens't happen with unmanaged Directx. For example, my application in C++, running in fullscreen mode, stay in 270 FPS. When I run the same application in Managed DirectX fullscreen mode, it stay in 80 FPS.


Someone knows why this problem occour

Thanks a lot.

Ricardo



Re: XNA Framework Managed DirectX

Jon Watte

In fullscreen, the managed version will synchronize to your monitor refresh (to avoid tears). This is often known as "VBLANK."





Re: XNA Framework Managed DirectX

josericardo_jr

Hi,

Thanks for your reply.


Is there a way to avoid this


Thanks!

Jose Ricardo





Re: XNA Framework Managed DirectX

Jon Watte

Many graphics cards have control panels that let you override application behavior, and always turn off vblank.

You can also set the presentation interval to "Default" when creating the device (as opposed to One). However, I've seen devices where "Default" still means vblank, so the control panel is your best bet.






Re: XNA Framework Managed DirectX

josericardo_jr

Hi Jon,

I tried to turn off vblak on my graphic card but the problem continues. Any suggestion

Does it happens with everybody here

Thanks a lot.

Ricardo





Re: XNA Framework Managed DirectX

josericardo_jr

Nobody knows

Thanks!!

Ricardo





Re: XNA Framework Managed DirectX

Jim Perry

I think you'll have to provide more info for us to make further suggestions. Can you post the project in question somewhere




Re: XNA Framework Managed DirectX

josericardo_jr

Hi Jim,

I'm using the ProgressiveMesh sample, with comes with DirectX SDK.

When I use this example using C++ in fullscreen, I get 154 fps. But when I use this example using Managed DX in fullscreen, I get 60 fps.

In both, using window mode, I get 180 fps.

Do you have any advice to help me

Thanks


Ricardo





Re: XNA Framework Managed DirectX

josericardo_jr

Hi people,

Any help

Thanks.

Ricardo




Re: XNA Framework Managed DirectX

Jim Perry

In the running app, click on the Change Device button or press F2. Change the Present Interval option to Immediate. Done.




Re: XNA Framework Managed DirectX

ProfEclipse

May I ask what this has to do with the XNA Framework





Re: XNA Framework Managed DirectX

Jim Perry

Nothing, but no one's moved it yet. (I can't)




Re: XNA Framework Managed DirectX

josericardo_jr

Thanks a lot!

It solved my problem!


Ricardo