Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only draw the focused and always-on-top apps #147

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions modules/system/scheduler/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ async def _render_task(self):

with PerfTimer("render"):
ctx = display.get_ctx()
for app in self.foreground_stack:
for app in self.foreground_stack[-1:] + self.on_top_stack:
with PerfTimer(f"rendering {app}"):
ctx.save()
try:
Expand All @@ -227,11 +227,6 @@ async def _render_task(self):
)
)
ctx.restore()
for app in self.on_top_stack:
with PerfTimer(f"rendering {app}"):
ctx.save()
app.draw(ctx)
ctx.restore()
display.end_frame(ctx)
await asyncio.sleep(0)

Expand Down
Loading