You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(!camera_update&&!camera.key_update&&lbm->get_t()==t_last_rendered_frame) returnfalse; // don't render a new frame if the scene hasn't changed since last frame
468
+
if(!visualization_change&&!camera_update&&!camera.key_update&&lbm->get_t()==t_last_rendered_frame) returnfalse; // don't render a new frame if the scene hasn't changed since last frame
Copy file name to clipboardexpand all lines: src/lbm.hpp
+2-1
Original file line number
Diff line number
Diff line change
@@ -185,7 +185,7 @@ class LBM_Domain {
185
185
return *this;
186
186
}
187
187
voidallocate(Device& device); // allocate memory for bitmap and zbuffer
188
-
boolenqueue_draw_frame(constint visualization_modes, constint slice_mode=0, constint slice_x=0, constint slice_y=0, constint slice_z=0); // main rendering function, calls rendering kernels, returns true if new frame is rendered, false if old frame is returned when camera has not moved
188
+
boolenqueue_draw_frame(constint visualization_modes, constint slice_mode=0, constint slice_x=0, constint slice_y=0, constint slice_z=0, constbool visualization_change=true); // main rendering function, calls rendering kernels, returns true if new frame is rendered, false if old frame is returned when camera has not moved
189
189
int* get_bitmap(); // returns pointer to bitmap
190
190
int* get_zbuffer(); // returns pointer to zbuffer
191
191
string device_defines() const; // returns preprocessor constants for embedding in OpenCL C code
@@ -495,6 +495,7 @@ class LBM {
495
495
LBM* lbm = nullptr;
496
496
std::atomic_int running_encoders = 0;
497
497
uint last_exported_frame = 0u; // for next_frame(...) function
498
+
int last_visualization_modes=0, last_slice_mode=0, last_slice_x=0, last_slice_y=0, last_slice_z=0; // don't render a new frame if the scene hasn't changed since last frame
0 commit comments