Re: GDI can be fast!



o//annabee wrote:
Hmm. Ok. On my card, the timings for 16 bit and 32 bit is identical.



Hi,

Just to make myself clear, the problem is selecting a 32 bit image into a 16 bit DC. Matching the resolution to the DC should present nearly identical results, i.e. 16 bit to 16 bit or 32 bit to 32 bit, however 32 to 16 should slow things down a bit as the color table has to be generated. Testing on my systems selecting and deselecting a 1024x1024 32 bit image with 1 meg colors (1st pixel = 000000, 2nd = 000001 etc..) resulted in a noticeable penalty for different color depths. For some reason my Athlon64 performed better than either the PIII or P4 even in 2 bit mode.

At any rate this is an interesting discussion and I would like to continue it if Hutch and Betov can take their stupidity elsewhere. Do you have any test results with specific GDI API calls ?

Donkey
.



Relevant Pages

  • Re: FC5, Dell Latitude, wireless, and beagle Oh my!
    ... It defaulted to a 800x600 resolution. ... that later by selecting a higher resolution screen and set it to ... Today I noticed the CPU getting hit really hard by the beagle process. ... I am hoping that disables this beagle task completely. ...
    (Fedora)
  • Re: GDI can be fast!
    ... the problem is selecting a 32 bit image into a 16 bit DC. ... I allocate a buffer 1024*768x4 (because thats the resolution I use). ... pluss the FULLSCREEN bitmap, a spashbitmap, that is a screenshot of my scoreboard in batlefield. ... And it is enough that I can now in much less effort, create an amazingly potent GUI, because I can easily mix in 2D sprites and 3D elements when doing it this way. ...
    (alt.lang.asm)
  • Re: Lexmark X2600 and X3650 scanning question
    ... selecting a much smaller rectangle for the actual scan? ... Can the default scan resolution be set for all future scans, or does it have to be re-set each time the software is started? ...
    (comp.periphs.printers)
  • Re: X-Mame Linux SVGAlib and Joystick problems
    ... selecting the best resolution for each game. ... selection is just fine on a CRT monitor, I think it will cause problems ... I haven't seen anyway of setting the resolution ...
    (alt.games.mame)
  • Re: Lexmark X2600 and X3650 scanning question
    ... selecting a much smaller rectangle for the actual scan? ... Can the default scan resolution be set for all future scans, ... have to be re-set each time the software is started? ...
    (comp.periphs.printers)