Project

General

Profile

Actions

Emulator Issues #10737

closed

Feature Request: Access to a cache-less Recompiler or a workaround for real-time altered assembly code. (when cheats are enabled)

Added by retroben over 7 years ago. Updated about 7 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

I know the idea of recompiler without cache is a ridiculous one,but having a workaround for assembly data in memory to respond in real-time would be helpful for finding cool and funny codes.
I have wanted something like this for the longest,the fact that even cached interpreter can't react to changed assembly code values is irritating.
With cache on interpreter it performs much faster than pure interpreter but slower than JIT recompiler for obvious reasons.
And we know recompiler is even more stubborn about changed assembly values.

Having a version without cache would likely be as slow or slower than cached interpreter but at least faster than pure interpreter single-digit fps rate.
The other idea would be an easy fix for access to real-time assembly modding while on recompiler with identical and could designed to only apply when cheats are enabled or a checkbox of its own to make it work.
In N64 emulation,Mupen has a method that responds to changed ASM and marks affected pages of cache as dirty then replaces them on a 4kb range to update the values,allowing real-time ASM changes to work much like an actual console would do,so if you used a code that modifies a specific animation and set button activators to it with multiple values,it would let you alter it in real-time without needing to rely on exploits like spamming save-states after changing the value.
Currently,in order to do this in real-time,I have to run the game at 8-10fps when on pure interpreter,but if there was a fix/workaround on recompiler,I could easily enjoy access to full 60fps speeds while altering ASM values to find out what they do and make fun codes in a much shorter time with less excessive save-state usage.

Examples; Wario World speeds-> recompiler=full 60fps easily | cached interpreter=slowdowns around 30-40fps or slower | pure interpreter=8-10fps usually,sometimes even slower

Someone please try to do something to make this possible to get rid of the headache of save-state spams just to check out modified ASM. (this would allow cheats to work exactly like they would on an actual console)
I posted a code for the game in an old topic of mine I repurposed so it could get some use instead of carelessly making a new topic.

Actions

Also available in: Atom PDF