VOGONS

Common searches


Search results

Display options

Re: A modern DOS Quake engine by Qbism

The issue I observed with non-static variables is that they are reloaded into registers each time a 'for' or 'while' loop is re-entered, even if the values were not modified outside the loop. It makes a difference in span drawing because there are many variables and many repetitions of the while …

Re: A modern DOS Quake engine by Qbism

Regarding compiler optimization, the Intel embedded compiler gave a 10fps boost to Pocket PC Quake vs free gcc compiler at the time. Either Intel was better optimized, or they knew the secret TurboBoost opcode :) I tend to overuse statics, but careful choice of static variables will speed up spans. …

Re: A modern DOS Quake engine by Qbism

I haven't tried this FP version below, but it's based on a non-FP spans experiment. The idea is to pre-multiply t and tstep with cachewidth so it can be removed in the loop. I expect the precision loss is too much even in 320x200. It's really just a precursor to a more refined approach that would …

Re: A modern DOS Quake engine by Qbism

The heart of the spans loop contains (at least) two potential areas of improvement. pdest[-16] = pbase[(s >> 16) + (t >> 16) * cachewidth]; s += sstep; t += tstep; The first one is simple: Although it is referenced repeatedly and never changes within drawspans, cachewidth is non-static because it's …

Re: A modern DOS Quake engine by Qbism

In a quick test, this is running faster. CD music is working. Not surprising really, Qbism targeted recent Core architecture by default. and never had an opportunity to do low-end testing. He couldn't see the drawback for sacking the assembly code True, although now I've got access to a P4 XP …

Re: A modern DOS Quake engine by Qbism

Hi, this is my first time here. I finally got a chance to try your build on dosbox. It's amazing to see colored light on the DOS platform. I was able to build this with djgpp within dosbox (by renaming vsnprintf.c to 'vsnprint.c' due to 8 char filename limit). BTW, could a current full source code …

Page 1 of 1