From: Ludvig Larsson Newsgroups: comp.os.msdos.djgpp Subject: Re: Speed -- again Date: Fri, 15 Jan 1999 03:36:33 +0100 Organization: Faas-Goldhart Lines: 27 Message-ID: <369EA9B1.76F7@club-internet.fr> References: <36952FD4 DOT 464173AA AT net4you DOT co DOT at> NNTP-Posting-Host: toulouse-camichel2-201.club-internet.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: front1.grolier.fr 916367654 8216 194.158.122.201 (15 Jan 1999 02:34:14 GMT) NNTP-Posting-Date: 15 Jan 1999 02:34:14 GMT X-Mailer: Mozilla 3.01C-CLUB (Win95; I) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Seawolf wrote: > > Two days ago I've seen a graphics demo using a 800x600x24bit or a 32bit > graphics mode (selectable by the user) demonstrating a lot of cool > effects like water ripples, plasma, tunnels, (warp) feedback, > texture/environment mapping. It's written using Watcom C and came with > the main source code (except the code for the drawing functions). The > demo seemed to use double buffering but it ran faster than everything > above 640x480x16 that I wrote. Anybody who could tell me why? > > --------- > "Hardware is fast enough to do interesting things, but not fast enough > to do hat we really want." - Michael Abrash, id Software If it's really fast, it it's probalby not rewriting the whole screen every frame. Dirty rectangles is one way to do this(for spritebased games without constantly moving background it is good), or maybe the buffer is used as a reference, and a function with different parameters is applyed to it is user. Ex. You got one picture in the doublebuffer and the function blit_to_screen_with_rotation(int degrees) is used. How high was the framerates(if you know)? and what kind of graphics card do you have? Ludvig