Dead Hackers Society
Other BBSes »
 
 

Sommarhack 2024

Silly Venture 2024 SE
Demoscene  Coding  CT60  Buy/sell

Atari demoscene BBS
 
Re: Doom floor texturing
Posted by: dml Jan,22.2013-11:43 

Thanks for the suggestions

I had some conversations with Eero and Laurent and there do seem to be good reasons for the timing differences - I think they are looking at it now. But yes, it's not a good idea to optimise in an emulator - I haven't discounted anything based on results from Hatari so far, just a convenience thing for now until I get data exchange sorted with my real machine.

Textures on the DSP - well it's an excellent idea generally, although I will find it very difficult because the DSP is packed with Doom engine code and is feeding the CPU with floor spans to fill. So the CPU really has to do the texturing bit (at least for now).


At some point I might find a way to split things up a bit more and recover the spans first in a separate pass, and have the DSP load code (and possibly textures) dynamically for different duties. For now it has a persistent duty with different commands, and much of the scene state collects up during the scene frame and is only extracted at the last moment, so it's not very easy to rework to get textures on there. i'd also need to consider the cost of many textures being present in each frame, and how many texture uploads can be amortized into texture lookup savings for a relatively small image (320x168, only about 50% of which is floor/ceiling).

It could be that the DSP performs texturing duties for small mipmaps, making uploads more affordable. I don't know how that trades against d-cache read hits in practice, which can also benefit small mips - would need experiments probably.


You're right though - it is something I haven't really thought much about and could help if I can find a way to make it work, while retaining the throughput and concurrency gains from the other areas the DSP handles. Will need time to think about it!

Cheers,
d.m.l








[All messages in this thread]    [Start new thread]

Topic Posted by  Date 
Doom floor texturing dml Jan,21.2013-18:47
  Re: Doom floor texturing dml Jan,21.2013-18:48
    Re: Doom floor texturing dml Jan,21.2013-21:33
      Re: Doom floor texturing Defjam Jan,21.2013-21:44
        Re: Doom floor texturing dml Jan,21.2013-22:38
        Re: Doom floor texturing dml Jan,22.2013-10:48
      Re: Doom floor texturing mikro Jan,22.2013-11:03
        Re: Doom floor texturing dml Jan,22.2013-11:43
          Re: Doom floor texturing mikro Jan,22.2013-13:30
            Re: Doom floor texturing mikro Jan,22.2013-13:36
              Re: Doom floor texturing mikro Jan,22.2013-13:37
                Re: Doom floor texturing dml Jan,22.2013-15:18
                  Re: Doom floor texturing mikro Jan,22.2013-16:22
                    Re: Doom floor texturing dml Jan,23.2013-00:55
                      Re: Doom floor texturing mikro Jan,23.2013-10:12
                        Re: Doom floor texturing dml Jan,23.2013-13:00
                        Re: Doom floor texturing Calimero Jan,24.2013-03:14
                  Re: Doom floor texturing ggn Jan,22.2013-16:41
                  Re: Doom floor texturing ggn Jan,22.2013-16:42
                    Re: Doom floor texturing dml Jan,23.2013-01:07
            Re: Doom floor texturing dml Feb,03.2013-20:23
              Re: Doom floor texturing mikro Feb,03.2013-22:07
          Re: Doom floor texturing dml Jan,23.2013-18:01
            Re: Doom floor texturing mikro Jan,23.2013-23:39


Reply to this message
Name:
Topic:
Anti-troll code:

Message:

What's the anti-troll code?
That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
© 1994-2024 Dead Hackers Society Contact: Anders Eriksson