Frame rate/render rate question
Posted 08 May 2005 - 06:43 AM
I just found this forum while googling for DirectX information, so hi to all. :)
ok I have to do a project at uni and I though I'd post here instead of the beginner's area (because I AM a beginner at DX :)). Basically, I'm implementing this project:
Basically, I'm using DirectX because we need to guarantee a certain rate of drawing and I don't think I can rely on Windows standard forms to do that for me. I need to flash the screen to a certain colour once per refresh rate. However, I don't think that Present(...) actually blocks until the refresh time has come. Since I've never used it before, someone could say for me to try it, but it's a little hard to see the screen changing colour at 75hz and be able to tell. :)
Therefore, I'm wondering if anyone would be able to help me on this matter. Right now, my idea is to simply change the clear colour and present nothing rendered. I need to make sure that I only change this colour once per refresh rate, so timers are out of the question as they do not have high enough resolutions. Any idea would be very welcome.
Posted 08 May 2005 - 10:12 AM
Yup - I'd read that one, but does that mean DX also only allows you to draw to the back buffer once per screen refresh - effectively making Present a blocking call?
Posted 09 May 2005 - 12:32 AM
ok, cheers mate, I'll give it a go. :)
Posted 09 May 2005 - 01:06 AM
Alright, looks like it works, but it seems to miss one frame every 30ish or so. I'm not sure why but I'm guessing it's because of another process using the processor for a second. I'll have to look into completely minimising my program so that it only does really essential stuff when rendering.
Posted 13 May 2005 - 03:28 PM
Posted 15 May 2005 - 02:43 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users