question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to tweak multi threaded image loading

See original GitHub issue

First of all, thanks for this great library!

I’m using TileView to display large paintings. The tiles are downloaded from the internet. I have setShouldRenderWhilePanning set to true because it offers the best user experience. Sometimes while flinging the animation gets jaggy.

I feel this might be because there are multiple thread working on downloading the images. Maybe when using a single thread, the tiles might be loaded a little less fast, but would also have less overhead and allow more resources for Android to smoothly show the animations.

Right now the TileRenderPoolExecutor is tightly coupled with the TileView, it would be great if there was some way to tweak the TileRenderPoolExecutor or add an abstraction layer (interface) for the class in charge of loading the tile-set (with TileRenderPoolExecutor as the default implementation)

Additionally I use TileView inside a ViewPager which allows the user to browse through an art collection. Each individual TileView creates and stops a PoolExecutor which also adds overhead. It would make more sense to share a PoolExecutor between TileView’s

What are your thoughts on this? Of course I’m willing to help by creating a pull request 😃

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:26 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
p-lrcommented, Jun 6, 2016

I can confirm this has a huge impact on performance, even for local tiles! No more stutter even in worse conditions. This is getting better and better 🍡

1reaction
tsuijtencommented, Jun 27, 2016

You can close this issue, maybe I’ll make a pullrequest for DI-ing the executor because I still feel this will reduce overhead in a viewpager. But no need to keep this issue open for that IMO

Read more comments on GitHub >

github_iconTop Results From Across the Web

threaded image loader - advanced - OpenFrameworks Forum
Hello, I'm building an app which loads images from a folder and displays them one at a time every minute, kind of like...
Read more >
Multithreaded JPEG Image Processing in Java - Stack Overflow
I have problem with reading JPEG images in Java with help of Image IO in multithreaded environment. Problems only arises if several thread...
Read more >
Texture2D.LoadImage too slow, anyway to use threading to ...
The following code works, it will take a long time in threading to process the image file, but will load almost instantly in...
Read more >
What Is Multithreading: A Guide to Multithreaded Applications
Multithreading is a model of program execution that allows for multiple threads to be created within a process, executing independently but ...
Read more >
iOS Tutorial Multi-Threading Basics - YouTube
This tutorial gives explanation on the multi -treading in iOS. In the slides, I explained the most important basic knowledge of ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found