Hey folks,
I'm doing a relatively simple animation program, but I need to get some rediculously fast frame rates, somewhere on the order of 60 frames per second, but 1000 refreshes/second.
Luckily, the frames themselves are simple: just a full screen (1280x800 resolution, could be less) black screen with some characters on it of different sizes and, maybe, color. I can pre-render the frames if necessary.
I also don't need to completely update the screen every refresh. What I mean is that I would want a particular frame displayed for about 16 ms, then a blank screen for about 75 ms, then another frame for 16 ms, with 30-60 of these in a row. I would do this a with a nil time between the clearing of the first frame and the drawing of the second frame.
I'm working in C++ so far, using the Fast Light Toolkit (FLTK). My experiments show that it takes about 16 ms between the time I call the MyWindow->show() function and the time it takes to get the window on the screen (done by calling gettickcount() before and after the function call). This consistently gives me times on the order of 16 ms, but as I said, I need to frame to display for 16 ms, and I think what this tells me is that it takes 16 ms to draw the frame, not necessarily have the frame on the screen for a full 16ms. I'm also not sure how the monitors refresh rate (60hz, or about refresh each 16.6667 ms) would play into this, but it seems that it would be okay if the frame is draw, to keep it there for 16ms. So maybe, the 16ms it takes to draw the frame isn't a big deal, I'm not sure.
Again, any advice would be helpful, I'd perfer to stick with C++/FLTK but I'm open to 1) using a different GUI toolkit, if that'll help; 2) Using a different rendering engine (I tried my hand at OpenGL but found it quite tricky, even for this, I'd use it if necessary though), 3) Using a different language (I'm quite experienced at VB and Java, but if anything, it seems those would give me much worse drawing times).
Thanks!


LinkBack URL
About LinkBacks




Reply With Quote



Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum