More low priority redraw request cases

Some more cases of textures etc causing continuous updates in vital updates only mode are fixed.
This commit is contained in:
lawnjelly 2022-06-12 06:44:59 +01:00
parent 40963cc920
commit f8df04ed50
7 changed files with 12 additions and 12 deletions

View file

@ -196,7 +196,7 @@ RasterizerStorageGLES2::Texture *RasterizerCanvasBaseGLES2::_bind_canvas_texture
} else { } else {
if (texture->redraw_if_visible) { if (texture->redraw_if_visible) {
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
texture = texture->get_ptr(); texture = texture->get_ptr();
@ -236,7 +236,7 @@ RasterizerStorageGLES2::Texture *RasterizerCanvasBaseGLES2::_bind_canvas_texture
} else { } else {
if (normal_map->redraw_if_visible) { //check before proxy, because this is usually used with proxies if (normal_map->redraw_if_visible) { //check before proxy, because this is usually used with proxies
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
normal_map = normal_map->get_ptr(); normal_map = normal_map->get_ptr();

View file

@ -1697,7 +1697,7 @@ void RasterizerCanvasGLES2::_legacy_canvas_render_item(Item *p_ci, RenderItemSta
} }
if (t->redraw_if_visible) { if (t->redraw_if_visible) {
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
t = t->get_ptr(); t = t->get_ptr();
@ -2059,7 +2059,7 @@ void RasterizerCanvasGLES2::render_joined_item(const BItemJoined &p_bij, RenderI
} }
if (t->redraw_if_visible) { if (t->redraw_if_visible) {
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
t = t->get_ptr(); t = t->get_ptr();

View file

@ -1435,7 +1435,7 @@ bool RasterizerSceneGLES2::_setup_material(RasterizerStorageGLES2::Material *p_m
} }
if (t->redraw_if_visible) { //must check before proxy because this is often used with proxies if (t->redraw_if_visible) { //must check before proxy because this is often used with proxies
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
t = t->get_ptr(); t = t->get_ptr();
@ -1812,7 +1812,7 @@ void RasterizerSceneGLES2::_render_geometry(RenderList::Element *p_element) {
RasterizerStorageGLES2::Texture *t = storage->texture_owner.get(c.texture); RasterizerStorageGLES2::Texture *t = storage->texture_owner.get(c.texture);
if (t->redraw_if_visible) { if (t->redraw_if_visible) {
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
t = t->get_ptr(); t = t->get_ptr();

View file

@ -226,7 +226,7 @@ RasterizerStorageGLES3::Texture *RasterizerCanvasBaseGLES3::_bind_canvas_texture
} else { } else {
if (texture->redraw_if_visible) { //check before proxy, because this is usually used with proxies if (texture->redraw_if_visible) { //check before proxy, because this is usually used with proxies
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
texture = texture->get_ptr(); texture = texture->get_ptr();
@ -265,7 +265,7 @@ RasterizerStorageGLES3::Texture *RasterizerCanvasBaseGLES3::_bind_canvas_texture
} else { } else {
if (normal_map->redraw_if_visible) { //check before proxy, because this is usually used with proxies if (normal_map->redraw_if_visible) { //check before proxy, because this is usually used with proxies
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
normal_map = normal_map->get_ptr(); normal_map = normal_map->get_ptr();

View file

@ -1292,7 +1292,7 @@ void RasterizerCanvasGLES3::render_joined_item(const BItemJoined &p_bij, RenderI
} }
if (t->redraw_if_visible) { //check before proxy, because this is usually used with proxies if (t->redraw_if_visible) { //check before proxy, because this is usually used with proxies
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
t = t->get_ptr(); t = t->get_ptr();

View file

@ -1161,7 +1161,7 @@ bool RasterizerSceneGLES3::_setup_material(RasterizerStorageGLES3::Material *p_m
if (t) { if (t) {
if (t->redraw_if_visible) { //must check before proxy because this is often used with proxies if (t->redraw_if_visible) { //must check before proxy because this is often used with proxies
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
t = t->get_ptr(); //resolve for proxies t = t->get_ptr(); //resolve for proxies
@ -1569,7 +1569,7 @@ void RasterizerSceneGLES3::_render_geometry(RenderList::Element *e) {
RasterizerStorageGLES3::Texture *t = storage->texture_owner.get(c.texture); RasterizerStorageGLES3::Texture *t = storage->texture_owner.get(c.texture);
if (t->redraw_if_visible) { if (t->redraw_if_visible) {
VisualServerRaster::redraw_request(); VisualServerRaster::redraw_request(false);
} }
t = t->get_ptr(); //resolve for proxies t = t->get_ptr(); //resolve for proxies

View file

@ -3298,7 +3298,7 @@ bool VisualServerScene::_render_reflection_probe_step(Instance *p_instance, int
Scenario *scenario = p_instance->scenario; Scenario *scenario = p_instance->scenario;
ERR_FAIL_COND_V(!scenario, true); ERR_FAIL_COND_V(!scenario, true);
VisualServerRaster::redraw_request(); //update, so it updates in editor VisualServerRaster::redraw_request(false); //update, so it updates in editor
if (p_step == 0) { if (p_step == 0) {
if (!VSG::scene_render->reflection_probe_instance_begin_render(reflection_probe->instance, scenario->reflection_atlas)) { if (!VSG::scene_render->reflection_probe_instance_begin_render(reflection_probe->instance, scenario->reflection_atlas)) {