Clean up render thread, plot method calls

This commit is contained in:
Andy Grundman authored and Acaki committed 2025-07-15 02:06:13 +08:00
1 parent 6682e64519
commit 5e4ba088be
11 files changed
+61 -157

No files matched your search

-13
View File
@@ -226,19 +226,6 @@
# endif
#endif
/// Stats Graphs, we can still track data this way even with ImGui disabled
- (void) observeFloat:(int)plotId value:(CFTimeInterval)value {
[self.plots[plotId].buffer addValue:(float)value];
}
- (void) observeFloatReturnMetrics:(int)plotId value:(CFTimeInterval)value plotMetrics:(PlotMetrics *)plotMetrics {
[self.plots[plotId].buffer addValue:(float)value];
if (plotMetrics != nil) {
[self.plots[plotId].buffer copyMetrics:plotMetrics];
}
}
#if !defined(IMGUI_DISABLE)
inline static float getValue(void *buffer, int idx) {
float *fbuffer = (float *)buffer;