mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 06:34:10 +00:00
parent
06c6dd0e4a
commit
8a57cf210a
1 changed files with 6 additions and 6 deletions
|
@ -31,7 +31,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
#ifndef __VERTEXCACHE_H__
|
||||
#define __VERTEXCACHE_H__
|
||||
|
||||
#if 0
|
||||
#if 1
|
||||
|
||||
// RB: increased some static memory limits for custom modder content
|
||||
|
||||
|
@ -42,7 +42,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
// there are a lot more static indexes than vertexes, because interactions are just new
|
||||
// index lists that reference existing vertexes
|
||||
const int STATIC_INDEX_MEMORY = 4 * 31 * 1024 * 1024;
|
||||
const int STATIC_VERTEX_MEMORY = 4 * 31 * 1024 * 1024; // make sure it fits in VERTCACHE_OFFSET_MASK!
|
||||
const int STATIC_VERTEX_MEMORY = 2 * 31 * 1024 * 1024; // make sure it fits in VERTCACHE_OFFSET_MASK!
|
||||
|
||||
// vertCacheHandle_t packs size, offset, and frame number into 64 bits
|
||||
typedef uint64 vertCacheHandle_t;
|
||||
|
@ -52,10 +52,10 @@ If you have questions concerning this license or the applicable additional terms
|
|||
const int VERTCACHE_SIZE_MASK = 0x7fffff; // 23 bits = 8 megs
|
||||
|
||||
const int VERTCACHE_OFFSET_SHIFT = 24;
|
||||
const int VERTCACHE_OFFSET_MASK = 0x1ffffff << 2; // 27 bits = 128 megs
|
||||
const int VERTCACHE_OFFSET_MASK = 0x3ffffff; // 26 bits = 64 megs
|
||||
|
||||
const int VERTCACHE_FRAME_SHIFT = 51;
|
||||
const int VERTCACHE_FRAME_MASK = 0x1fff; // 13 bits = 8191 frames to wrap around
|
||||
const int VERTCACHE_FRAME_SHIFT = 50;
|
||||
const int VERTCACHE_FRAME_MASK = 0x3fff; // 14 bits = 16382 frames to wrap around
|
||||
|
||||
|
||||
#else
|
||||
|
@ -79,7 +79,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
const int VERTCACHE_OFFSET_SHIFT = 24;
|
||||
const int VERTCACHE_OFFSET_MASK = 0x1ffffff; // 32 megs
|
||||
const int VERTCACHE_FRAME_SHIFT = 49;
|
||||
const int VERTCACHE_FRAME_MASK = 0x7fff; // 15 bits = 32k frames to wrap around
|
||||
const int VERTCACHE_FRAME_MASK = 0x7fff; // 15 bits = 32k frames to wrap around, python hex( ( 1 << 15 ) - 1 )
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue