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 setIndirectBufferUpdateTimeBudget( int milliseconds );
51  int indirectBufferUpdateTimeBudget() const;
52 
53  void setCdbParallelForThreadCount( int threadCount ) ;
54  int cdbParallelForThreadCount() const;
55 
56  protected:
57 
59  friend class boost::serialization::access;
60 
64  template<class Archive>
65  void serialize(Archive & ar, const unsigned int version)
66  {
67  ar & BOOST_SERIALIZATION_NVP(myMetaFlightPerformanceBias);
68  ar & BOOST_SERIALIZATION_NVP(myDdsFlip);
69 
70  if (version >= 3)
71  {
72  ar & BOOST_SERIALIZATION_NVP(myMetaFlightGeometryOffsetFactor);
73  ar & BOOST_SERIALIZATION_NVP(myMetaFlightCompressVirtualTextures);
74  }
75 
76  if( version == 4 )
77  {
78  // Depreciated
79  ar& BOOST_SERIALIZATION_NVP( myGpuArenaTimeBudget );
80  }
81 
82  if( version >= 4 )
83  {
84  ar& BOOST_SERIALIZATION_NVP( myIndirectBufferUpdateTimeBudget );
85  ar& BOOST_SERIALIZATION_NVP( myCdbParallelForThreadCount );
86  }
87  }
88 
89  protected:
92  bool myDdsFlip;
94 
95  // Depreciated
97 
99 
101  };
102 }
103 
104 
106 
107 #endif
108 
BOOST_CLASS_VERSION(makArchives::DtDiGuySettingsRecord, 3)
float myMetaFlightGeometryOffsetFactor
Definition: DtLoaderSettingsRecord.h:91
bool myMetaFlightCompressVirtualTextures
Definition: DtLoaderSettingsRecord.h:93
bool myDdsFlip
Definition: DtLoaderSettingsRecord.h:92
Contains DLL export macros.
int myMetaFlightPerformanceBias
Definition: DtLoaderSettingsRecord.h:90
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:65
int myIndirectBufferUpdateTimeBudget
Definition: DtLoaderSettingsRecord.h:98
int myCdbParallelForThreadCount
Definition: DtLoaderSettingsRecord.h:100
A DtLoaderSettingsRecord contains the information restore loader settings from disk.
Definition: DtLoaderSettingsRecord.h:19
int myGpuArenaTimeBudget
Definition: DtLoaderSettingsRecord.h:96
#define DT_DLL_MAKARCHIVES
Definition: makArchives.h:31

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)