[SDL] Perhaps slightly OT... linedrawing with SDL
linux_dr at yahoo.com
Wed Oct 2 10:28:01 PDT 2002
On Wed, 2002-10-02 at 10:39, Neil Bradley wrote:
> >> I'm dealing with 400+ vectors *PER FRAME*, so even the smallest
> >> optimizations are significant.
> >I don't think so. Your CPU has about 31250 cycles to render each line.
> >Depending on your application and screen resolution, that's probably in
> >the range of 50-500 cycles *per pixel* of each line.
> Regardless of what you say above, if I remove the lines of code that write
> to the dirty tile map (but still blit the entire screen), I see a jump of
> about 15FPS on my PII 1Ghz. As I stated above, even the smallest
> optimizations are significant. I didn't just make that up. ;-)
Why are you trying to beat 80 FPS... what vid-mode/monitor are you
dealing with that can beat that? If you don't sync to the v-refresh,
you will get all sorts of ugly tearing... are you sure this is what you
want? I'm not saying that you shouldn't get the frame-rate as high as
possible, but most video-modes only go between 60Hz and 120Hz...
More information about the SDL