Hey #[0] I am currently running a Zapraiser. The amount isn't displayed on https://zaplife.lol properly. Maybe because it's a large one? I was just curious. Thanks.

#note1cw4ywmru7vumqljd6ur8m77uv28a8f9z5jp0z45656lzx5200j4s2k53dj

Reply to this note

Please Login to reply.

Discussion

I see it!

having a look!

The UI is a little choppy now.

Looking into it.

#[4]​

Uncertain if the resized functionality or something else clogging the thread.

There is a PR with improved image with a commit: “image fill modifier”

#[5]​

Improving display logic for images #869

Although my test show that the image viewing is not the cause of choppiness.

Something else is loading on main thread which causes the artifacts.

#investigating

Guessing initial loading the cache is the cause for the launch choppiness as it appears to be smoother after the timeline has loaded.

🤔

But there is a slight glitch when the image is about to appear still, and ran a test without image filling and the choppiness remained. It’s very subtle, but yet noticeable.

After some research, here are some thoughts:

The views are instantiated and the configured, which implies that all configurations occur on main thread, with heavy string interpolation, with exception of image loading on the view.

A suggestion and method would be to create a view model, and configure it, perhaps even in a different thread, and then when configured and loaded, pass it to the view when ready to go with all the data configured instead of loading the view and then configuring it, since the body of a view should be as simple as possible, along with the possibility for asynchronous preparation of a view model before passing it to the view.

Also, curious about global functions, is there a reason for globalization of functions?

Wouldn’t class/struct or static functions serve better?!

Fixed it!

turns out it was just because of the uppercase Z on the hashtag 😂, my code was parsing just for lowercase

but I used the opportunity to make a bunch of fixes, sort zapraisers (yours is at the top 😉 rn) and also style notes a bit better for mobile

I was kind of thinking it had to do with the capital Z since I didn't see any others with it 😂 Thanks for your hard work.