Jump to content
  • Advertisement
Sign in to follow this  
  • entries
    73
  • comments
    131
  • views
    54995

doh...

Sign in to follow this  
okonomiyaki

273 views

hm... I'm slightly concerned. When I added the following two lines to finally display something, it eats up a lot of time:


AXAppRenderer->GetRenderDevice()->Clear( 0, NULL, D3DCLEAR_TARGET, D3DCOLOR_XRGB(0,75,100), 1.0f, 0 );

AXAppRenderer->GetRenderDevice()->Present( NULL, NULL, NULL, NULL );


I won't normally be accessing the device directly but I wanted a clean screen instead of the leftover crap you get when you don't paint a window.

But now on average a loop takes .04s, and you can take at most 0.016s if you want 60 fps. Maybe it's just because it's debug. Maybe because DX isn't really kicking in until I start doing stuff. I dunno, we'll see, but I didn't quite expect that much of a slowdown. It was around 0.0001s per loop before, maybe even less.


AliquiX Profile Sample (0.04688 seconds)
pMin | pAvg | pMax | cMin | cAvg | cMax | Name
-----------------------------------------------------------------
0.0 | 0.0 | 0.0 | 1.0 | 1.0 | 1.0 | Main loop
0.0 | 0.6 | 8.3 | 1.0 | 1.0 | 1.0 | TaskInputUpdate
0.0 | 0.0 | 0.0 | 1.0 | 1.0 | 1.0 | AppState Task
91.7 | 99.4 | 100.0 | 1.0 | 1.0 | 1.0 | TaskRenderUpdate
-----------------------------------------------------------------
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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!