Skip to content
Snippets Groups Projects
Commit 767a46c4 authored by pippin's avatar pippin
Browse files

py,ui: only create one compositing group for ViewTransitionBlend

ctx.start_group and ctx.end_group are expensive calls creating an off-screen
32bpp rendering texture, redirecting rendering to it, and rendering this
result back to the screen.
parent 57c66171
No related branches found
No related tags found
1 merge request!225py,ui: only create one compositing group for ViewTransitionBlend
Pipeline #7351 passed
......@@ -87,13 +87,11 @@ class ViewTransitionBlend(ViewTransition):
def draw(
self, ctx: Context, transition: float, incoming: Responder, outgoing: Responder
) -> None:
ctx.start_group()
outgoing.draw(ctx)
ctx.end_group()
ctx.start_group()
ctx.global_alpha = transition
incoming.draw(ctx)
ctx.global_alpha = transition
ctx.end_group()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment