Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!public!valentin From: valentin@public.BTR.COM (Valentin Pepelea) Newsgroups: comp.sys.amiga.programmer Subject: Re: hardware sprites Keywords: sprites Message-ID: <2987@public.BTR.COM> Date: 8 Jun 91 05:11:37 GMT References: <19672@csli.Stanford.EDU> <2979@public.BTR.COM> <22258@cbmvax.commodore.com> Organization: BTR Communications, Mtn. View, CA Lines: 19 In article <22258@cbmvax.commodore.com> spence@cbmvax.commodore.com (Spencer Shanson) writes: > >Valentin, ChangeSprite() has to MoveSprite(), whereas FreeSprite() >is much simpler - point the sprite to a default sprite of 0s. I would be >surprised if you have found ChangeSprite() to be faster than FreeSprite(). On the other hand, restoring the sprite will require an additional call to GetSprite(). So the question is whether FreeSprite() and GetSprite() together are faster than just ChangeSprite(), praticularly when you take into account the overhead of calling these functions. There are advantages to having access to the source code, so why don't you tell me. Valentin -- "An operating system without virtual memory Name: Valentin Pepelea is an operating system without virtue." Phone: (408) 985-1700 Usenet: mips!btr!valentin - Ancient Inca Proverb Internet: valentin@btr.com