Im sure that this has been covered many many times before, but how can I draw the screen faster on a HPC? Currently im using GameX (which later became GAPI) to do full screen RGB565 blits on my Jornada 680. (640x240 SH-3 HPC)
Currently it seems that my fullscreen blits are taking about 50% of the total frame time.
Im working on my HPCDoom port and im blitting from a 256color palletised buffer, to the frame buffer.
I have 2 display modes, one which is a stright 320x200 (which runs at around (6-10 fps) and a full screen stretched blit which runs at the full 640x240. (by repeating 1 in 6 lines and drawing 2 pixels for each one Doom pixel. Full screen runs at around 3-7fps, however not blitting gives me around 15-20fps on the SH-3 device.
What im thinking of doing is in the Doom drawing code, rather than drawing to the 256 color buffer and then blitting again with a RGB565 lookup from the pallete, I would like to just draw stright to the framebuffer in RGB565 with an __inline SetPixel(x,y,color) function. This should work lovely since the framebuffer contents are only put to the screen when gx->EndDraw() is called.
Any thoughts on this or tips on fast blitting?
Currently it seems that my fullscreen blits are taking about 50% of the total frame time.
Im working on my HPCDoom port and im blitting from a 256color palletised buffer, to the frame buffer.
I have 2 display modes, one which is a stright 320x200 (which runs at around (6-10 fps) and a full screen stretched blit which runs at the full 640x240. (by repeating 1 in 6 lines and drawing 2 pixels for each one Doom pixel. Full screen runs at around 3-7fps, however not blitting gives me around 15-20fps on the SH-3 device.
What im thinking of doing is in the Doom drawing code, rather than drawing to the 256 color buffer and then blitting again with a RGB565 lookup from the pallete, I would like to just draw stright to the framebuffer in RGB565 with an __inline SetPixel(x,y,color) function. This should work lovely since the framebuffer contents are only put to the screen when gx->EndDraw() is called.
Any thoughts on this or tips on fast blitting?