Page 1 of 4 1234 LastLast
Results 1 to 10 of 38

Thread: Daedalus Blog Update (April 29) - N64 Emulator for PSP

                  
   
  1. #1

    Default Daedalus Blog Update (April 29) - N64 Emulator for PSP

    via http://strmnnrmn.blogspot.com/

    R11 almost ready

    Following on from last week's work, I've been busy fixing a few more issues relating to the way Daedalus handles textures.

    To start with, I refactored the way that n64-format textures are converted to psp-format textures. Previously, I was converting the textures at the point at which they were loaded into texture memory on the n64. A result of this was that in order to support mirroring, I needed to keep a copy of the converted pixels in RAM. By moving the conversion process closer to the point that the textures are actually used on the psp, I've been able to remove this buffer and perform conversion and mirroring in the same step. This has approximately halved the memory needed for each texture, and is slightly faster than the previous approach.

    The most significant change I've made is to fix a memory leak in the texture cache. I mentioned last week that I'd discovered that the texture cache was the biggest culprit for soaking up memory. It turned out that despite my fixes and support for 4-bit and 8-bit palettised textures, I was still running out of memory in certain situations. I did a bit more investigating, and discovered a resource leak that had been in the texture cache since it was first written (probably 7 or 8 years ago now!)

    It turned out that in certain situations, several textures would hash to the same bucket in the hash table that I was using. This wasn't normally a problem, but occasionally the process which purges old textures from the cache was accidentally leaking textures. This was wasting video memory and causing the leaked textures to be re-converted on next frame.

    The fix ended up being a very simple one-line change, and as a result the texture cache is now 100% leak-free. As an added bonus, it seems that the change has resulted in a nice 4-5% speedup - I suspect this is because the leaked textures are now no-longer being unnecessarily reconverted.

    The final bit of work I've been doing is setting up a fixed-size pool for allocating textures from (well, there are actually two pools - one for fast VRAM and another of standard RAM for when this runs out). Despite the various improvements and fixes I've made to reduce the amount of memory being consumed by the texture cache, I wanted to put a hard limit on how much memory can ever be used. This change means that if the limit is ever reached, I just display white textures until some texture memory is freed up a little later. Previously Daedalus would just keep allocating RAM until it ran out of memory and crashed, so the new solution is much nicer

    All in all I'm very happy with the state of R11. The changes I've made mean that I can permanently allocate 8MB for the Expansion Pak, and not worry about running out of memory. A welcome side-effect to all the texture changes I've made is an approximate 5-10% speedup over R11. On top of this Daedalus now remembers your preferences for each rom, so it's a little nicer to use.

    I've still got a few small things to polish, but I'm hoping to release R11 by the weekend.

    -StrmnNrmn
    Can't wait

  2. #2
    DCEmu Legend DarthPaul's Avatar
    Join Date
    Apr 2006
    Location
    Puerto Rico
    Age
    34
    Posts
    2,734
    Rep Power
    86

    Default

    Omg the weekend!! That's it!!

  3. #3
    DCEmu Newbie
    Join Date
    Nov 2006
    Posts
    32
    Rep Power
    0

    Default

    Certainly one of the most interesting homebrew emulators on the PSP. Always interesting to read your blog StrmnNrmn.

  4. #4
    DCEmu Pro The King's Avatar
    Join Date
    Oct 2006
    Location
    with ur sister
    Age
    32
    Posts
    580
    Rep Power
    82

    Default

    cool cant wait to play conker, killer instinct, and zelda to top it of

  5. #5
    DCEmu Legend Buddy4point0's Avatar
    Join Date
    May 2006
    Location
    The Lounge Awesomeness: 1337
    Age
    32
    Posts
    4,026
    Rep Power
    135

    Default

    this weekend!!
    im sooo happy!
    i love u!

  6. #6
    PSP User ryan2006's Avatar
    Join Date
    Jan 2006
    Location
    sommerset (Soo Boring)
    Posts
    220
    Rep Power
    72

    Default

    great work as always

  7. #7
    Fidei Defensor Basil Zero's Avatar
    Join Date
    May 2006
    Location
    Omni
    Posts
    1,674
    Rep Power
    75

    Default

    this weekend?

    as in next weekend?

    cause its sunday to me now lol

    next weekend would mean 1st week of May

    regardless..........WOOT!!!

    Cant WAIT!!!!

  8. #8
    DCEmu Pro sroon's Avatar
    Join Date
    Nov 2005
    Location
    Hyrule
    Age
    34
    Posts
    726
    Rep Power
    74

    Question Expasion pack work?

    Quote Originally Posted by Basil Zero View Post
    this weekend?

    as in next weekend?

    cause its sunday to me now lol

    next weekend would mean 1st week of april

    regardless..........WOOT!!!

    Cant WAIT!!!!
    ok first of all its April now you turd wipe:P
    im just wondering if the expansion pack will work?
    i hope it does
    (O ) ( O)

  9. #9
    DCEmu Rookie IM back!'s Avatar
    Join Date
    Feb 2007
    Posts
    237
    Rep Power
    65

    Default

    yes much needed speed!

  10. #10
    DCEmu Regular Nikolaos's Avatar
    Join Date
    Jun 2006
    Location
    Ontario, Canada
    Age
    34
    Posts
    452
    Rep Power
    67

    Default

    Wow great work dude, R10 is just amazing. other ppl should get involved in this project too

Page 1 of 4 1234 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •