Forum: Official FCEUX and SNES9x forums - Discuss FCEUX and SNES9x here.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: Snes9x for ps2
  

Page 121 of 131 FirstFirst ... 21 71 111 119 120 121 122 123 ... LastLast
Results 1,201 to 1,210 of 1304
  1. #1201  
    cosmito is offline Member
    Join Date
    Sep 2006
    Posts
    93
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    1
    Quote Originally Posted by ragnarok2040 View Post
    I've got pocketsnes most of the way ported. I need to adjust the video code a bit, and add a thread to handle outputting sound. It's pretty slow, at about 13 fps for super mario rpg and super mario world.
    How many threads are there? May the slowness be a side effect of thread switching?
    Reply With Quote  

  2. #1202  
    ragnarok2040 is offline Member
    Join Date
    Dec 2002
    Posts
    548
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    3
    Just the main thread. I used an alarm function to do the audio buffer adjustment, which would interrupt the main thread. Your suggestion got me thinking, and I think pocketsnes blocks when the audio buffer index isn't adjusted fast enough. Which is probably why it wasn't running until after I got the sound buffer function to execute regularly.

    I lowered the interval and now super mario world is stable at around 45 fps, and super mario rpg hits ~30. I need to time the thread switching just right so the buffer only rarely blocks. Probably around ~12 or 13 hsyncs for PAL and ~8 or 9 hsyncs for NTSC, or maybe 10 for both. The sound thread should run after every emulated frame, thereabouts, that way.
    Reply With Quote  

  3. #1203  
    SP193's Avatar
    SP193 is offline The fallen spartan...
    Join Date
    May 2009
    Location
    シンガポール
    Posts
    1,954
    Downloads
    0
    Uploads
    0
    Mentioned
    14 Post(s)
    Tagged
    3 Thread(s)
    Likes Given
    33
    Likes Received
    211
    Quote Originally Posted by ragnarok2040 View Post
    Just the main thread. I used an alarm function to do the audio buffer adjustment, which would interrupt the main thread. Your suggestion got me thinking, and I think pocketsnes blocks when the audio buffer index isn't adjusted fast enough. Which is probably why it wasn't running until after I got the sound buffer function to execute regularly.

    I lowered the interval and now super mario world is stable at around 45 fps, and super mario rpg hits ~30. I need to time the thread switching just right so the buffer only rarely blocks. Probably around ~12 or 13 hsyncs for PAL and ~8 or 9 hsyncs for NTSC, or maybe 10 for both. The sound thread should run after every emulated frame, thereabouts, that way.
    I was just thinking: Why not attach the sound thread to the VSYNC interrupt handler (I was under the impression that some part of the emulator needed to run at around 60Hz...)?

    Then the EE won't have to be programmed to achieve accurate timing, and affecting emulation speed at the same time.
    Unmodified SCPH-77006 with SM 3.6
    SCPH-39006 with M-chip modchip, SCPH-10281 NA and refurb Seagate 80GB HDD
    SCPH-10000 v1.00 with SCPH-10190 PCMCIA NA and SCPH-20400 HDD unit
    PS2ESDL v0.823B

    やっほー 汗がひかる♪
    Reply With Quote  

  4. #1204  
    protomank is offline Member
    Join Date
    Mar 2008
    Location
    Porto Alegre, RS, Brazil
    Posts
    210
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    1
    Likes Received
    5
    WoW! What a huge improvement just because of sound syncing!
    Shame on me to doubt ragnarok's skills
    Reply With Quote  

  5. #1205  
    bruce_lee_'s Avatar
    bruce_lee_ is offline kung-fu master
    Join Date
    Aug 2010
    Posts
    132
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by ragnarok2040 View Post
    ...I lowered the interval and now super mario world is stable at around 45 fps....
    Last edited by bruce_lee_; 02-25-2011 at 03:50 PM.
    Reply With Quote  

  6. #1206  
    ragnarok2040 is offline Member
    Join Date
    Dec 2002
    Posts
    548
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    3
    That's a great idea, SP193, . I'll try it out and see how it sounds.

    I've got the sound almost working perfectly, now, with the alarm function/dispatcher thread. There's some crackling that keeps appearing, so the period between sound buffer updates probably needs adjusting. I'll try the vsync route first.

    The roms seemd to top out at around 30 fps, with the sound code running like it should. At least, they look and sound about perfect when running at that speed.
    Reply With Quote  

  7. #1207  
    ragnarok2040 is offline Member
    Join Date
    Dec 2002
    Posts
    548
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Likes Given
    0
    Likes Received
    3
    My linux kernel decided to corrupt itself, so I'm in the process of moving things to Windows, :/.

    Going to be a while...
    Reply With Quote  

  8. #1208  
    skynet7 is offline Member
    Join Date
    Dec 2010
    Posts
    31
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    hey ragnarok i appreciate your hard work but please i want to know when will you launch next version.
    Reply With Quote  

  9. #1209  
    offthewall is offline Member
    Join Date
    May 2008
    Posts
    208
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by ragnarok2040 View Post
    My linux kernel decided to corrupt itself, so I'm in the process of moving things to Windows, :/.
    That's a bummer man...it seems to have been a real challenge porting these SNES emu's. I still fully support you, and hopefully the rest of the PS2 homebrew scene does too as well.
    PS2 Consoles:
    SCPH-39001 - DMS4 Pro S.E.
    SCPH-39001 - Duo 3 Ultra
    Reply With Quote  

  10. #1210  
    personuser is offline Member
    Join Date
    Aug 2010
    Posts
    189
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    We're here for ya, rag, all....how many of us are there....well, all of us.

    We hope the transition is as quick and painless as possible.
    Reply With Quote  

Page 121 of 131 FirstFirst ... 21 71 111 119 120 121 122 123 ... LastLast
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •