by alin23 · 3y ago · 0 comments
Many smart devs tried to help me, and I added some of their recommendations:
- caching views to a bitmap using Metal
- trying smaller windows so that less pixels have to be redrawn
Unfortunately nothing made a noticeable difference, this will have to wait until I get a really boring weekend.It's doc description seems to be closer to what you need than the `id()` modifier.
<https://developer.apple.com/documentation/swiftui/view/equat...>
> Prevents the view from updating its child view when its new value is the same as its old value.
Also, https://swiftwithmajid.com/2020/01/22/optimizing-views-in-sw...
Some things still re-render the world and are VERY slow though (ifs/switch inside ForEach with many rows easily brings app to hard lagging, even if doing everything to prevent it -> makes SwiftUI useless for generic row usecases).
Seems like the app doesn’t have a huge amount of UI and could be converted in a few months.
Would help understand the context on posts that describe tech that has evolved rapidly and probably still will