VR-Vantage 3.0 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TracyProtocol.hpp
Go to the documentation of this file.
1 #ifndef __TRACYPROTOCOL_HPP__
2 #define __TRACYPROTOCOL_HPP__
3 
4 #include <limits>
5 #include <stdint.h>
6 
7 namespace tracy
8 {
9 
10 constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }
11 
12 enum : uint32_t { ProtocolVersion = 46 };
13 enum : uint16_t { BroadcastVersion = 2 };
14 
15 using lz4sz_t = uint32_t;
16 
17 enum { TargetFrameSize = 256 * 1024 };
19 static_assert( LZ4Size <= std::numeric_limits<lz4sz_t>::max(), "LZ4Size greater than lz4sz_t" );
20 static_assert( TargetFrameSize * 2 >= 64 * 1024, "Not enough space for LZ4 stream buffer" );
21 
23 static const char HandshakeShibboleth[HandshakeShibbolethSize] = { 'T', 'r', 'a', 'c', 'y', 'P', 'r', 'f' };
24 
26 {
32 };
33 
36 
37 #pragma pack( 1 )
38 
39 // Must increase left query space after handling!
41 {
58 };
59 
61 {
65 };
66 
68 
69 
71 {
77 };
78 
79 
81 {
82  double timerMul;
95  char cpuManufacturer[12];
99 };
100 
101 enum { WelcomeMessageSize = sizeof( WelcomeMessage ) };
102 
103 
105 {
108 };
109 
111 
112 
114 {
118  int32_t activeTime; // in seconds
120 };
121 
123 
124 #pragma pack()
125 
126 }
127 
128 #endif


Copyright © 2005-2022 MAK Technologies. All Rights Reserved (www.mak.com)