LeviLamina
Loading...
Searching...
No Matches
PlayerRenderChunkModificationLatencyTracker.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/deps/core/utility/EnableNonOwnerReferences.h"
7#include "mc/platform/threading/Mutex.h"
8#include "mc/world/level/BlockPos.h"
9#include "mc/world/level/SubChunkPos.h"
10
11// auto generated forward declare list
12// clang-format off
13class BlockPos;
14class SubChunkPos;
15namespace Bedrock::Threading { class Mutex; }
16// clang-format on
17
19public:
20 // PlayerRenderChunkModificationLatencyTracker inner types declare
21 // clang-format off
22 struct TimeDelta;
23 struct TimeMarker;
24 // clang-format on
25
26 // PlayerRenderChunkModificationLatencyTracker inner types define
27 struct TimeDelta {
28 public:
29 // member variables
30 // NOLINTBEGIN
33 // NOLINTEND
34
35 public:
36 // prevent constructor by default
37 TimeDelta& operator=(TimeDelta const&);
38 TimeDelta(TimeDelta const&);
39 TimeDelta();
40 };
41
42 using TimeStamp = ::std::chrono::steady_clock::time_point;
43
44 struct TimeMarker {
45 public:
46 // member variables
47 // NOLINTBEGIN
50 // NOLINTEND
51
52 public:
53 // prevent constructor by default
54 TimeMarker& operator=(TimeMarker const&);
55 TimeMarker(TimeMarker const&);
56 TimeMarker();
57 };
58
59public:
60 // member variables
61 // NOLINTBEGIN
62 ::ll::TypedStorage<1, 1, bool> mTimingIsActive;
63 ::ll::TypedStorage<8, 8, ::std::chrono::steady_clock::time_point> mStartTime;
64 ::ll::TypedStorage<8, 24, ::std::vector<::PlayerRenderChunkModificationLatencyTracker::TimeMarker>> mTimeMarkers;
65 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockToTrack;
66 ::ll::TypedStorage<4, 12, ::SubChunkPos> mRenderChunkPosToTrack;
67 ::ll::TypedStorage<8, 80, ::Bedrock::Threading::Mutex> mMutex;
68 // NOLINTEND
69
70public:
71 // virtual functions
72 // NOLINTBEGIN
73 // vIndex: 0
74 virtual ~PlayerRenderChunkModificationLatencyTracker() /*override*/ = default;
75 // NOLINTEND
76};
Definition EnableNonOwnerReferences.h:7
Definition BlockPos.h:18
Definition PlayerRenderChunkModificationLatencyTracker.h:18
Definition SubChunkPos.h:5
Definition TimeStamp.h:5
Definition PlayerRenderChunkModificationLatencyTracker.h:27
Definition PlayerRenderChunkModificationLatencyTracker.h:44
Definition Alias.h:14