• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › General Discussion v
« Previous 1 ... 166 167 168 169 170 ... 368 Next »

Dolphin gamecube block cache
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Dolphin gamecube block cache
06-26-2013, 05:59 AM
#1
MagicJack
Unregistered
 
So I was wondering if someone could try and explain to me what the block cache in the emulator is. It seems to be the cause of a lot of lag in the game 007 nightfire for me. I can go in to more detail as to why it is the reason if needed.
Reply
06-26-2013, 06:25 AM
#2
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
The "block cache" you're most likely talking about is internally called the JIT cache, and it stores the result of PPC->X86 code translation + performs branch linking on compiled blocks in order to 1. avoid having to lookup jump destinations through the dispatcher when they're known; 2. avoid having to recompile code when we already have a compiled version of it.

It has to be invalidated either partially or completely at some point. Most of the time, only partially when a icbi/icbz/... instruction is used to clear the instruction cache. Very rarely, it has to be completely cleared (game disables cache, for example).
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
06-26-2013, 07:08 AM
#3
MagicJack
Unregistered
 
Okay thanks. Whenever I play Nightfire It starts at 60fps but slowly goes down as more enemies enter into the screen area. It seems after a while of running at 8-15fps, it automatically clears the block cache and the game speeds up instantly back up to 60fps. Is there anything I can do to make it happen more often or is this more a coded thing that isnt really controllable?
Reply
06-26-2013, 07:15 AM
#4
delroth Offline
Making the world a better place through reverse engineered DSP firmwares
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,354
Threads: 63
Joined: Aug 2011
It's probably not related and just a consequence of something else.
Pierre "delroth" Bourdon - @delroth_ - Blog

<@neobrain> that looks sophisticated enough to not be a totally dumb thing to do
Website Find
Reply
06-26-2013, 02:37 PM
#5
MagicJack
Unregistered
 
Okay thanks
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode