Jump to content
  • Advertisement
Sign in to follow this  
Baf

DXUTMainLoop Vs normal GameLoop

This topic is 4840 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

without any render between beginscene e endscene in 2 programs DXUT main program goes 10 times faster(in fps) than the prog that use a "while" message loop. it means i have to use DXUT?

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Baf
without any render between beginscene e endscene in 2 programs
DXUT main program goes 10 times faster(in fps) than the prog that use a
"while" message loop. it means i have to use DXUT?

huh?

Share this post


Link to post
Share on other sites
If you dont have buffer swapping to immediate in D3DPP then i spose yours could be going at 60 and DXUT one at 600.

ace

Share this post


Link to post
Share on other sites
Hi Ace thank you for answer
whaz buffer swapping? and why DXUT go faster?
cheers


Share this post


Link to post
Share on other sites
Well buffer swapping is how DirectX swaps the back buffer with the front buffer and in DirectX there are several options. In Direct3d the scene is drawn to the back buffer then swapped with the front one, the front one is the one drawn to the screen. One of the swap options is Immediate mode. This means that Direct3D will swap the back buffer to the front as soon as possible. Another option is for Direct3D to wait for Vertical Sync with the monitor, which means the buffers wont be swapped until the monitor has refreshed. The result overall is that immediate swapping will produce a higher framerate if the app is running faster than the refresh of the monitor.

I figured that if the monitor was refreshing at 60FPS and you didnt have immediate swapping set then you might be restricted to this. Where as the DXUT might happen to be running at 600 FPS which happens to be 10x faster.

ace

Share this post


Link to post
Share on other sites
my blank window fps is 40 (without DXUT) if i add rendering it goes down to 20.

with immediate swapping of buckbuffer could it increse?
does DXUT use it?

vales (latin)

Share this post


Link to post
Share on other sites
ok i try
i will move the gameloop under SDK DXUT
i hope it will go 200fps
byebye see you

Share this post


Link to post
Share on other sites
me again, good coding to all!!

reading into DXUT.cpp i understood that buffer settings are in dynamic changes
finding a best configuration each time, isn't it? do i think bad?


Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!