Article View: rec.games.programmer
Article #714Re: Graphics help/advice
From: Bob Pendelton
Date: Tue, 15 Sep 1992 15:55
Date: Tue, 15 Sep 1992 15:55
39 lines
1999 bytes
1999 bytes
From article <1992Sep12.225253.12198@hellgate.utah.edu>, by galt%peruvian.utah.edu@cs.utah.edu (Greg Alt):
> In article <20298@plains.NoDak.edu> tscott@plains.NoDak.edu (Timothy E Scott) writes:
>>1) Created two 180 element arrays sine and cosine, which are
>> equal to the sine/cosine of an angle times 10000. Any
>> references to an angles sine/cosine therefore are not
>> computed.
>
> It should be faster to make the multiplier a power of 2. Either
> 16384 or 8192 would be good. That way, you can use a right shift
> instead of a divide.
>
> A little bit of assembly would help out a lot, since many compilers
> (BC++ for example) do a function call for every operation on a long.
> It is annoying to do assembly code using 16 bit registers for
> operations on longs, but it is pretty simple, and you don't need to
> learn much assembly.
Depending on what you want to do with the code when you are done, you
might consider using DJGPP. It's a full 32 bit 386/486 compiler and
has good support for VGA graphics cards.
You can get it via anonymous ftp from most of the major ftp sites. But
host: barnacle.erc.clarkson.edu
login: ftp
password: send your e-mail address
directory: ~ftp/pub/msdos/djgpp
is a good place to get it.
I've been playing with it and I'm pretty happy with it.
Bob P.
--
Bob Pendleton | As an engineer I hate to hear:
bobp@hal.com | 1) You've earned an "I told you so."
Speaking only for myself. | 2) Our customers don't do that.
<<< Odin, after the well of Mimir. >>>
Technical Details
Message-ID:
<1992Sep15.155501.9329@hal.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!hal.com!halaus!bobpReferences:
<1992Sep12.225253.12198@hellgate.utah.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!olivea!hal.com!halaus!bobp From: bobp@hal.com (Bob Pendelton) Newsgroups: rec.games.programmer Subject: Re: Graphics help/advice Message-ID: <1992Sep15.155501.9329@hal.com> Date: 15 Sep 92 15:55:01 GMT References: <1992Sep12.225253.12198@hellgate.utah.edu> Distribution: na Organization: HaL Computer Systems, Inc. Lines: 39