skyrim-community-shaders
skyrim-community-shaders copied to clipboard
Cache GetRuntimeData usage
trafficstars
GetRuntimeData and similar functions like GetVRRuntimeData, should cache the offset relative to the class and manually cast to the associated RUNTIME_DATA, by storing the offset on init in Globals.cpp. This will improve performance because it prevents constantly looking up the game version using rel::module::get.
Please make changes within the project and make sure it builds using the BuildRelease.bat.
Please also analyze and identify if any similar caching may improve performance but do not implement the code changes yet.