Newsgroups: comp.os.msdos.djgpp From: Elliott Oti Subject: Re: Graphics Libraries -- Which is fastest? Sender: usenet AT fys DOT ruu DOT nl (News system Tijgertje) Message-ID: In-Reply-To: <35029F72.F88E8B2D@concentric.net> Date: Mon, 9 Mar 1998 11:23:31 GMT Content-Type: TEXT/PLAIN; charset=US-ASCII References: <35029F72 DOT F88E8B2D AT concentric DOT net> Mime-Version: 1.0 Organization: Physics and Astronomy, University of Utrecht, The Netherlands Lines: 38 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Sun, 8 Mar 1998, D. Huizenga wrote: > Hi, > > I have been using Allegro for graphics programming in the game that > I am currently working on. While it does get around 200 FPS (It > actually updates the video ram faster than the monitor scans the > screen), I wonder if Allegro is the fastest. The reason I wonder > is that I want my game to run well on slow computers as well, such > as a 486/33, or a 486/66 (DX2). Does anybody have speed comparisons? > Thanks. The Allegro sprite and blitting functions are reasonably fast -- you are unlikely to squeeze out more than 5%-10% by using a custom blitter, in most cases. The Allegro putpixel/getpixel functions are very, very slow -- in the case of linear bitmaps you can get a 5x-10x speedup by writing directly to the line[] substructure instead. The Allegro polygon functions are also very slow because of their extreme generality; Switching to a third party 3d library compatible with Allegro such as jaw3d, lib3d, tpolygon II etc can provide speedups in the order of 3x to 5x. The advantage of Allegro lies in the integration of sound code, graphics code, input-devices code, bitmap loaders, timers, and a strong user base. I know of no other library for djgpp with the generality and flexibility of Allegro; there are a number of *graphics* libraries that might be faster ( especially 3d ); but the other alternatives ( betatron, jlib ) while having their own strong points, are not particularly faster than Allegro. Elliott Oti kamer 104, tel (030-253) 2516 (RvG) http://www.fys.ruu.nl/~oti