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.

Loading too many tiles after #1014

See original GitHub issue

After landing #1014 @johnsusi and I have noticed that it’s now loading more tiles than it needs. Beforehand (in my experience) it loads the highest level that covers the entire image with a single tile and then progresses upward from there. Now it does that but also progresses downward, loading every single level down to level 0. In @johnsusi’s case he had immediateRender on, so it’s even more dramatic that it’s loading everything (instead of just the top level it needed).

Obviously we don’t want to be loading these unnecessary tiles. One approach would be to roll back #1014, but I think it’s actually the right step forward, and it’s just uncovered an existing flaw in our logic, so I propose we leave the patch and seek to fix this new issue.

One theory: When we go through looking for the next tile to load perhaps we don’t have a “don’t bother” threshold. Now with #1014 we keep looking for next tiles to load more aggressively, so we need to institute that threshold. It should be based on the knowledge that the tiles needed to cover the scene are already in process somehow.

Note that if a high level tile fails to load, we should then fall back to loading a tile below it to cover that space. Perhaps our current code treats “this tile is currently being loaded” as a load failure.

@johnsusi says he’ll dig into it, and perhaps @CaptainCodeman can be of help as well.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:46 (37 by maintainers)

github_iconTop GitHub Comments

1reaction
harukizaemoncommented, Feb 21, 2017

@iangilman Ahh. In this case it was four tiles, yes and then it began loading the next higher level of resolution. So long as that’s normal, all good. Thank you!

1reaction
iangilmancommented, Feb 20, 2017

@harukizaemon That may be perfectly normal… if level 10 is the largest level that’s contained in a single tile, OSD would open that first, but then continue onto level 11 for higher resolution.

What we’re concerned about here is if it then starts going back down the levels and opening 9, 8, etc.

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 BIG Shower Niche Install Mistakes to Avoid in your Shower ...
Read this article if you want to avoid tearing out your dream shower because of a few avoidable shower niche install mistakes.
Read more >
Peel and Stick Floor Tile: 3 Things to Know Before Getting ...
And if you end up buying too much you can always return the individual tiles that you don't end up using. Store your...
Read more >
To seal or not to seal porcelain tiles - Nerang Tiles
Today we have so many different kinds of porcelain, ... If after several minutes water is absorbed then the tile can stain and...
Read more >
How to Install Sheet Vinyl Flooring Over Tile - Bless'er House
All of the supplies and steps you need for installing sheet vinyl flooring over old tile yourself for a temporary fix.
Read more >
Ipad email screen, remove annoying list o… - Apple Community
iPadOS permits you to have multiple “instances” of the same App - each instance being self contained. The shelf, when triggered, ...
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