You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Fixed Timestep Interpolation (3D)
Adds fixed timestep interpolation to the visual server. Switchable on and off with project setting. This version does not add new API for set_transform etc, when nodes have the interpolated flag set they will always use interpolation.
This commit is contained in:
@@ -94,6 +94,14 @@ 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