VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtLoaderSettingsRecord.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #ifndef DtLoaderSettingsRecord_H_
11 #define DtLoaderSettingsRecord_H_
12 
14 
15 namespace makArchives
16 {
20  {
21  public:
22 
25 
28 
31 
33  DtLoaderSettingsRecord& operator=(const DtLoaderSettingsRecord& orig);
34 
35  bool ddsFlip() const;
36  void setDdsFlip( bool setting );
37 
38  int metaFlightPerformanceBias() const;
39  void setMetaFlightPerformanceBias(int setting);
40 
41  float metaFlightGeometryOffsetFactor() const;
42  void setMetaFlightGeometryOffsetFactor(float val);
43 
44  bool metaFlightCompressVirtualTextures() const;
45  void setMetaFlightCompressVirtualTextures(bool val);
46 
47  void setGpuArenaTimeBudget( int milliseconds );
48  int gpuArenaTimeBudget() const;
49 
50  void setGpuArenaUploadMemoryBudget(int megabytes);
51  int gpuArenaUploadMemoryBudget() const;
52 
53  void setIndirectBufferUpdateTimeBudget( int milliseconds );
54  int indirectBufferUpdateTimeBudget() const;
55 
56  void setCdbParallelForThreadCount( int threadCount ) ;
57  int cdbParallelForThreadCount() const;
58 
59  protected:
60 
62  friend class boost::serialization::access;
63 
67  template<class Archive>
68  void serialize(Archive & ar, const unsigned int version)
69  {
70  ar & BOOST_SERIALIZATION_NVP(myMetaFlightPerformanceBias);
71  ar & BOOST_SERIALIZATION_NVP(myDdsFlip);
72 
73  if (version >= 3)
74  {
75  ar & BOOST_SERIALIZATION_NVP(myMetaFlightGeometryOffsetFactor);
76  ar & BOOST_SERIALIZATION_NVP(myMetaFlightCompressVirtualTextures);
77  }
78 
79  if( version == 4 )
80  {
81  // Depreciated
82  ar& BOOST_SERIALIZATION_NVP( myGpuArenaTimeBudget );
83  }
84 
85  if (version >= 4 && version <= 5)
86  {
87  // Depreciated
88  ar& BOOST_SERIALIZATION_NVP( myIndirectBufferUpdateTimeBudget );
89  }
90 
91  if (version >= 4)
92  {
93  ar& BOOST_SERIALIZATION_NVP( myCdbParallelForThreadCount );
94  }
95 
96  if (version >= 6)
97  {
98  ar& BOOST_SERIALIZATION_NVP(myGpuArenaUploadMemoryBudget);
99  }
100  }
101 
102  protected:
105  bool myDdsFlip;
107 
108  // Depreciated
110 
112 
113  // Depreciated
115 
117  };
118 }
119 
120 
122 
123 #endif
124 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
float myMetaFlightGeometryOffsetFactor
Definition: DtLoaderSettingsRecord.h:104
bool myMetaFlightCompressVirtualTextures
Definition: DtLoaderSettingsRecord.h:106
bool myDdsFlip
Definition: DtLoaderSettingsRecord.h:105
Contains DLL export macros.
int myMetaFlightPerformanceBias
Definition: DtLoaderSettingsRecord.h:103
void serialize(Archive &ar, const unsigned int version)
When the class Archive corresponds to an output archive, the &amp; operator is defined similar to &lt;&lt;...
Definition: DtLoaderSettingsRecord.h:68
int myIndirectBufferUpdateTimeBudget
Definition: DtLoaderSettingsRecord.h:114
int myCdbParallelForThreadCount
Definition: DtLoaderSettingsRecord.h:116
A DtLoaderSettingsRecord contains the information restore loader settings from disk.
Definition: DtLoaderSettingsRecord.h:19
int myGpuArenaTimeBudget
Definition: DtLoaderSettingsRecord.h:109
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31
int myGpuArenaUploadMemoryBudget
Definition: DtLoaderSettingsRecord.h:111

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)