Closed fwsGonzo closed 6 months ago
I tried adding support for a custom bytecode here, but it did not improve performance or latency at all. I'll keep it in a branch for now, just in case I get an idea.
After thinking about this, I will just scrap this idea for now.
Adding dynamic calls support directly into the Machine will improve the latency a little but, but the drawback is more code needs to be maintained, a new bytecode needs to be added, and assumptions about how dynamic calls are implemented, and finally relevant tests need to be written.
It's just an idea at this stage, but we will see. If anyone wants to use libriscv seriously in their games, they may not want to integrate all of the RVScript repo necessarily. Bringing in dynamic calls directly into the Machine will make a part of the job of integration go away, although users will still have to implement them exactly as specified in their programs.
We'll see.