Skip to content
Snippets Groups Projects
Unverified Commit 0dde01e1 authored by dos's avatar dos
Browse files

gr33nhouse: Don't render invisible entries in the applist

Improves rendering performance with current app list size
from 3-4 FPS to 8-10 FPS.
parent c5df5c07
No related branches found
No related tags found
1 merge request!212gr33nhouse: Don't render invisible entries in the applist
Pipeline #7253 passed
......@@ -106,8 +106,9 @@ class AppList(BaseView):
else:
ctx.gray(1.0)
ctx.move_to(0, offset)
ctx.text(app["name"])
if abs(self._sc.current_position() - idx) <= 5:
ctx.move_to(0, offset)
ctx.text(app["name"])
offset += 30
ctx.restore()
......
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