DXUTMainLoop Vs normal GameLoop

Started by
8 comments, last by Baf 18 years, 8 months ago
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?
Baffo"role-game needs a table"
Advertisement
hello people
no interest!!! i cry.... :(
Baffo"role-game needs a table"
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?

Beginner in Game Development?  Read here. And read here.

 

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
Hi Ace thank you for answer
whaz buffer swapping? and why DXUT go faster?
cheers


Baffo"role-game needs a table"
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
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)

Baffo"role-game needs a table"
I'm not ure but that is what i was speculating.

ace
ok i try
i will move the gameloop under SDK DXUT
i hope it will go 200fps
byebye see you
Baffo"role-game needs a table"
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?


Baffo"role-game needs a table"

This topic is closed to new replies.

Advertisement