Article View: comp.os.msdos.programmer
Article #20Clearing the frame buffer quickly?
From: Joseph Geniec
Date: Wed, 28 Oct 1992 15:43
Date: Wed, 28 Oct 1992 15:43
16 lines
1266 bytes
1266 bytes
I am working on some animation in BC++ in EGAHI, which has 2 frame buffers. My approach is that I draw 1 animation frame in FB0, change the active FB to 1, clear out 1, draw the next frame in FB1, change the visual FB to 1, change the active FB to 0, clear out 0, draw the next frame in 0, set the visual FB to 0, etc, etc. to get smoother looking animation. My problem is that the clearviewport() command is too slow for my liking. Is there some way to wipe out a frame buffer quicker than this? Is there a way to do this with the built-in assembler? (I need an example if this is so; I know nothing of 80386 assembly language) And finally, is it possible to use such a routine in any graphics mode? (i.e. VGAHI, VGAMED, EGALO, etc) Many Thanks, Joe Geniec
Technical Details
Message-ID:
<1992Oct28.154320.2037@cis.ohio-state.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!medulla.cis.ohio-state.edu!jgeniecShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!medulla.cis.ohio-state.edu!jgeniec From: jgeniec@medulla.cis.ohio-state.edu (Joseph Geniec) Subject: Clearing the frame buffer quickly? Message-ID: <1992Oct28.154320.2037@cis.ohio-state.edu> Sender: news@cis.ohio-state.edu (NETnews ) Organization: The Ohio State University Dept. of Computer and Info. Science Date: Wed, 28 Oct 1992 15:43:20 GMT Lines: 18