Replying to Avatar Derek Ross

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

I see it!

having a look!

Reply to this note

Please Login to reply.

Discussion

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?!