Skip to content
Snippets Groups Projects

LUA_EnumLib optimizations for constant value access

Merged Hannu Hanhi requested to merge Hannu_Hanhi/SRB2:lua-optimized-constants into next
  • Constants are stored into _G after first use
  • Made LUA_EvalMath's dedicated Lua state permanent so it can also benefit from these optimizations
  • Tests show that time spent in game logic code improves by 10-20% when mods are loaded and player is idling on a map

Test build: (updated 2022-01-25) (based on next so be careful with your save files)

srb2win_lua-optimized-constants-2.exe

Edited by Hannu Hanhi

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading