Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FB commands
#1
It appears that some sdl commands like sdl_delay 5000 , works directly in FB , but sdl_flip does not , but flip does -- any simple explanation -- I am new to FB and sdl.
Ray
Second question , on my machine , flip appears slow and color depth dependant -- is there any way to avoid flipping the whole screen just because you've drawn a few points -- my question relates to moving graphic objects around under keyboard control -- to see it move you have to flip the screen after each move -- If I am using a full screen and 1024x768 pixels at 8 bit color depth , it is twice as slow at QB4.0
I realise there is a screen difference -- but qb operates at two disadvantages any way , it's only 16 bits and the horizontal scan rate is less for the smaller screen ---- so to me FB should be faster ,
Any explanation or guidance would be welcome
Ray
Reply
#2
The next version of FB won't require FLIP anymore, so you won't have to redraw the whole screen - it should be faster.

sdl_flip should work if you call it like so:
Code:
SDL_Flip SDL_GetVideoSurface
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)