From 73020aae5bf0b7dd49c78880e2768deb19181b81 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Tue, 28 Apr 2020 23:41:34 +0800 Subject: Preparation for the visualization renderer. The visualization should now sync better. Remove calls to real-time APIs in the visualization loop. --- visualization/qmpvisualization.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'visualization/qmpvisualization.hpp') diff --git a/visualization/qmpvisualization.hpp b/visualization/qmpvisualization.hpp index 34bacc1..a5dad02 100644 --- a/visualization/qmpvisualization.hpp +++ b/visualization/qmpvisualization.hpp @@ -2,6 +2,7 @@ #define QMPVISUALIZATION_H #include +#include #include #include #include @@ -36,11 +37,14 @@ class qmpVisualization:public qmpPluginIntf,public qmpFuncBaseIntf smParticleSystem* pss[16][128]; smPSEmissionPositionGenerator* psepg; float pos[3],rot[3],lastx,lasty; - uint32_t ctc,ctk,elb; + uint32_t ctc,ctk,elb,lstk; + uint32_t cts,cks,ctp; + std::chrono::steady_clock::time_point lst; double etps; bool shouldclose,playing,debug; + bool internal_clock_source; int herh,heh,hfrf; - int uihb,uihs,uihp,uihr; + int uihb,uihs,uihp,uihr,uihk; std::vector>tspool; int traveld[16][128];bool notestatus[16][128],lastnotestatus[16][128]; int spectra[16][128],spectrar[16][128]; -- cgit v1.2.3