qzdoom/src/g_inventory
Christoph Oelckers 86544086df - allow the VM to run on one global stack per thread.
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.
2016-11-30 17:15:01 +01:00
..
a_ammo.cpp - moved ammo to its own file, including the backpack. 2016-11-30 12:24:50 +01:00
a_ammo.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_armor.cpp - moved armor class declarations to their own file and added necessary #includes only to those files actually using them. 2016-11-30 10:55:03 +01:00
a_armor.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_artifacts.cpp - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_artifacts.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_health.cpp - split up zscript/shared/inventory.txt. 2016-11-30 13:36:13 +01:00
a_health.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_keys.cpp - moved armor class declarations to their own file and added necessary #includes only to those files actually using them. 2016-11-30 10:55:03 +01:00
a_keys.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_pickups.cpp - allow the VM to run on one global stack per thread. 2016-11-30 17:15:01 +01:00
a_pickups.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_puzzleitems.cpp - split up zscript/shared/inventory.txt. 2016-11-30 13:36:13 +01:00
a_weaponpiece.cpp - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_weaponpiece.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00
a_weapons.cpp - allow the VM to run on one global stack per thread. 2016-11-30 17:15:01 +01:00
a_weapons.h - cleanup of the virtual function definitions for inventory items. Let's better use 'virtual' and 'override' everywhere to make sure that nothing gets overlooked. 2016-11-30 15:54:01 +01:00