2D Fixed Timestep Interpolation

Adds support to canvas items and Camera2D.
This commit is contained in:
lawnjelly
2022-11-09 15:53:23 +00:00
parent ac5d7dc821
commit 5162efbfe9
30 changed files with 738 additions and 139 deletions

View File

@@ -136,6 +136,20 @@ void VisualServerRaster::draw(bool p_swap_buffers, double frame_step) {
void VisualServerRaster::sync() {
}
void VisualServerRaster::set_physics_interpolation_enabled(bool p_enabled) {
VSG::scene->set_physics_interpolation_enabled(p_enabled);
VSG::canvas->set_physics_interpolation_enabled(p_enabled);
}
void VisualServerRaster::tick() {
VSG::scene->tick();
VSG::canvas->tick();
}
void VisualServerRaster::pre_draw(bool p_will_draw) {
VSG::scene->pre_draw(p_will_draw);
}
bool VisualServerRaster::has_changed(ChangedPriority p_priority) const {
switch (p_priority) {
default: {