05-04-2003, 07:06 PM
quick suggestion. if you're only using integers, use integer division. ("\" instead of "/"). and instead of mod, which uses division to do its thing, use "and" on powers of 2. so instead of:
something mod 16
use
something and 15
also, just the usual, unroll loops and dont use different data types together, etc. actually, if you want "pure qb" for some reason, i'd go ahead and not use subroutines for sprites unless it's necessary, as qb's stack handler blows. instead, i'd use one giant drawscreen sub and not let that call anything except maybe setvideoseg.
something mod 16
use
something and 15
also, just the usual, unroll loops and dont use different data types together, etc. actually, if you want "pure qb" for some reason, i'd go ahead and not use subroutines for sprites unless it's necessary, as qb's stack handler blows. instead, i'd use one giant drawscreen sub and not let that call anything except maybe setvideoseg.
i]"I know what you're thinking. Did he fire six shots or only five? Well, to tell you the truth, in all this excitement, I've kinda lost track myself. But being as this is a .44 Magnum ... you've got to ask yourself one question: 'Do I feel lucky?' Well, do ya punk?"[/i] - Dirty Harry