You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Physics interpolation - Move out of Scenario
Move VisualServer interpolation data out of Scenario and into VisualServerScene, so the interpolation data and enabled status is now common to all Scenarios. Fix physics interpolation in multithreaded mode by ensuring tick and pre-draw are called.
This commit is contained in:
@@ -94,14 +94,6 @@ void VisualServerRaster::request_frame_drawn_callback(Object *p_where, const Str
|
||||
frame_drawn_callbacks.push_back(fdc);
|
||||
}
|
||||
|
||||
void VisualServerRaster::scenario_tick(RID p_scenario) {
|
||||
VSG::scene->_scenario_tick(p_scenario);
|
||||
}
|
||||
|
||||
void VisualServerRaster::scenario_pre_draw(RID p_scenario, bool p_will_draw) {
|
||||
VSG::scene->_scenario_pre_draw(p_scenario, p_will_draw);
|
||||
}
|
||||
|
||||
void VisualServerRaster::draw(bool p_swap_buffers, double frame_step) {
|
||||
//needs to be done before changes is reset to 0, to not force the editor to redraw
|
||||
VS::get_singleton()->emit_signal("frame_pre_draw");
|
||||
|
||||
Reference in New Issue
Block a user