vkdoom_m/src/rendering/hwrenderer
Chernoskill 769d60a64f
Dynamic number of models per frame instead of a hard limit of four. (#1298)
* Changed model-related arrays to TArrays.

* Update models.cpp

Used TArray.Alloc to make TArrays have the correct size depending on the number of models. 
surfaceSkinIDs was two-dimensional and is now a one-dimensional TArray as well, it's size is now (models * MD3_MAX_SURFACES)
surfaceSkinIDs was two-dimensional and is now a one-dimensional TArray as well, elements are accessed via [Row + Column * NumRows], in this case sSurfaceIndex + modelIndex * MD3_MAX_SURFACES]

* Edited skinSurfaceIDs access for one-dimensional TArray

* Edited skinSurfaceIDs access for one-dimensional TArray

* Edited skinSurfaceIDs access for one-dimensional TArray

* Changed model-related arrays to TArrays.

Also removed MAX_MODELS_PER_FRAME.

* Used TArray.Alloc to make TArrays have the correct size depending on the number of models. 

surfaceSkinIDs was two-dimensional and is now a one-dimensional TArray as well, elements are accessed via [Row + Column * NumRows], in this case surfaceIndex + modelIndex * MD3_MAX_SURFACES]

* Used TArray.Alloc to make TArrays have the correct size depending on the number of models. 

surfaceSkinIDs was two-dimensional and is now a one-dimensional TArray as well, elements are accessed via [Row + Column * NumRows], in this case surfaceIndex + modelIndex * MD3_MAX_SURFACES]

* Update models.h

* Edited MAX_MODELS_MD3

* Update models_obj.cpp
2021-02-24 15:26:47 -05:00
..
scene - Modified commit from @OrdinaryMagician #1261 2020-12-30 11:08:43 -05:00
doom_aabbtree.cpp - directory structure cleanup. 2020-04-29 17:36:58 +02:00
doom_aabbtree.h - directory structure cleanup. 2020-04-29 17:36:58 +02:00
hw_dynlightdata.cpp - fixed: the attenuation flag wasn't passed to the shader if shadowmaps were disabled. 2020-06-12 15:16:50 +02:00
hw_entrypoint.cpp - fixed bad range check in shadowmap code. 2020-06-12 15:07:13 +02:00
hw_models.cpp - add option to texture hqresize resize model skins. 2020-10-08 00:30:12 -04:00
hw_models.h - directory structure cleanup. 2020-04-29 17:36:58 +02:00
hw_postprocessshader.cpp - directory structure cleanup. 2020-04-29 17:36:58 +02:00
hw_precache.cpp Dynamic number of models per frame instead of a hard limit of four. (#1298) 2021-02-24 15:26:47 -05:00
hw_vertexbuilder.cpp - directory structure cleanup. 2020-04-29 17:36:58 +02:00
hw_vertexbuilder.h - directory structure cleanup. 2020-04-29 17:36:58 +02:00