Original Post
🔒 Locked
Vertical blank
Advertisement
I do not believe there is one. To get smooth animation in Windows, render to an off-screen bitmap and then blit the whole thing to the canvas of the visible component in one hit. Delphi 5 added the DoubleBuffered property (or was that Delphi 4?) to the visual components and this handles all that for you.
Steve 'Sly' Williams
Tools Developer
Krome Studios
Steve 'Sly' Williams
Tools Developer
Krome Studios
I think rendering to an offscreen bitmap and then blitting can still cause flicker if you blit during a vertical retrace?
As far as I know, you have to use ASM if you want to synchronize to the vertical retrace. Then again, I think most video cards allow you to enable/disable Vsync in their driver control panels.
Tom Nuydens
delphi3d@gamedeveloper.org
www.gamedeveloper.org/delphi3d
As far as I know, you have to use ASM if you want to synchronize to the vertical retrace. Then again, I think most video cards allow you to enable/disable Vsync in their driver control panels.
Tom Nuydens
delphi3d@gamedeveloper.org
www.gamedeveloper.org/delphi3d
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement