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


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 16 17 18 19 20 ... 117 Next »

Gecko's codehandler lag fix wip
View New Posts | View Today's Posts

Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Gecko's codehandler lag fix wip
10-25-2018, 05:18 AM (This post was last modified: 11-03-2018, 04:54 PM by One More Try.)
#1
One More Try Offline
Posting Freak
*****
Posts: 886
Threads: 23
Joined: Dec 2014
The codehandler writes then icbi's (cache invalidates) for each code every frame, and if you have too many codes this will cause lag. Oddly, this lag will sometimes only appears for a few frames every 10-20 seconds.  My fix checks many of the write instructions to see if they are redundant and can be skipped, along with skipping the icbi too. This means many codes will never need to write/icbi more than once, and thus no more lag.

I have very little knowledge of how to correctly build codehandler.bin on windows, so I had to edit the output binary by hand to make it work. It seems to work fine though, but a proper build of it would be nice.

Finally, I don't know when exactly icbi needs to be used and if dcbf ever needs to be used. If someone more knowledgeable would like to discuss that.

If you try it and something breaks, post the gecko code you used with it. To use it, just place codehandler.bin in the dolphin /sys/ folder (backup the existing one). You can ignore the other files in the 7z.

/edit It was built into dolphin. No more need to share it here.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Gecko's codehandler lag fix wip - One More Try - 10-25-2018, 05:18 AM
RE: Gecko's codehandler lag fix wip - One More Try - 10-28-2018, 06:20 AM
RE: Gecko's codehandler lag fix wip - skid - 10-28-2018, 06:26 AM
RE: Gecko's codehandler lag fix wip - One More Try - 10-28-2018, 07:45 AM
RE: Gecko's codehandler lag fix wip - One More Try - 11-01-2018, 02:32 PM
RE: Gecko's codehandler lag fix wip - skid - 11-02-2018, 08:09 AM
RE: Gecko's codehandler lag fix wip - One More Try - 11-03-2018, 04:13 AM

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


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode