Skip to content

Commit

Permalink
Move Lua VM to ITCM RAM
Browse files Browse the repository at this point in the history
Take advantage of the new ITCM RAM support to dramatically speed up the Lua VM.

See: 32blit/32blit-sdk#737

Co-authored-by: Charlie Birks <[email protected]>
  • Loading branch information
Gadgetoid and Daft-Freak committed Jan 27, 2022
1 parent 9e62da3 commit 8ebefc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lvm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1118,8 +1118,8 @@ void luaV_finishOp (lua_State *L) {
#define vmcase(l) case l:
#define vmbreak break


void luaV_execute (lua_State *L, CallInfo *ci) {
#include "engine/fast_code.hpp"
void blit_fast_code(luaV_execute) (lua_State *L, CallInfo *ci) {
LClosure *cl;
TValue *k;
StkId base;
Expand Down

0 comments on commit 8ebefc4

Please sign in to comment.