mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-16 15:31:30 +00:00
86544086df
It is utterly pointless to require every function that wants to make a VM call to allocate a new stack first. The allocation overhead doubles the time to set up the call. With one stack, previously allocated memory can be reused. The only important thing is, if this ever gets used in a multithreaded environment to have the stack being declared as thread_local, although for ZDoom this is of no consequence. - eliminated all cases where native code was calling other native code through the VM interface. After scriptifying the game code, only 5 places were left which were quickly eliminated. This was mostly to ensure that the native VM function parameters do not need to be propagated further than absolutely necessary. |
||
---|---|---|
.. | ||
a_ammo.cpp | ||
a_ammo.h | ||
a_armor.cpp | ||
a_armor.h | ||
a_artifacts.cpp | ||
a_artifacts.h | ||
a_health.cpp | ||
a_health.h | ||
a_keys.cpp | ||
a_keys.h | ||
a_pickups.cpp | ||
a_pickups.h | ||
a_puzzleitems.cpp | ||
a_weaponpiece.cpp | ||
a_weaponpiece.h | ||
a_weapons.cpp | ||
a_weapons.h |