littlenavmap icon indicating copy to clipboard operation
littlenavmap copied to clipboard

Load scenery asynchronously

Open albar965 opened this issue 3 years ago • 6 comments

Should not require a big effort since scenery is compiled into a separate database anyway

albar965 avatar Aug 23 '21 15:08 albar965

Hi Alex,

May I jump on that one to propose an other angle ? Yes, I'd love to see an asynchronous refresh.

I may also love to have a way to only refresh the community files. Because I often change my community folder between flight (including / excluding aircraft or sceneries). But my "core" isn't that much updated.

That could be hard to implement though, because I expect you to drop the db and do everything in a certain order and introducing a "partial refresh" may also introduce bugs.

Just wanted to let you know that this would be appreciated, though :)

Cheers ! K.

cowreth avatar Apr 24 '22 13:04 cowreth

Yes, I'd love to see an asynchronous refresh.

This is doable since the compilation has a temporary database as a target anyway. Still might cause unexpected issues.

I may also love to have a way to only refresh the community files. Because I often change my community folder between flight (including / excluding aircraft or sceneries). But my "core" isn't that much updated.

That could be hard to implement though, because I expect you to drop the db and do everything in a certain order and introducing a "partial refresh" may also introduce bugs.

MSFS Community folder and add-ons for other sims? Sorry, but partial refresh is close to undoable due to the many relations between airports, navaids and whatnot.

albar965 avatar Apr 24 '22 13:04 albar965

MSFS Community folder and add-ons for other sims ?

Hehe, only refreshing MSFS Community. Nothing for the other sims. Use case : before each flight, I select / deselect add-ons. Or update them. Or install new ones. That occurs nearly each every day. And each every day, I have to rescan the entire library, including the ASOBO one. Which doesn't move quite often :).

Hence the feature request : would it be possible to refresh only a directory ? Remove a directory from the SQLite db, without rescanning ?

cowreth avatar Apr 25 '22 16:04 cowreth

Hence the feature request : would it be possible to refresh only a directory ? Remove a directory from the SQLite db, without rescanning ?

Sorry, nope. Too many relations. It's already a pain with the FSX/P3D/MSFS airport update system.

Why not enable all scenery, load it into LNM and then enable/disable scenery as you need for flying in the sim without updating LNM? In worst case you'll see an airport in LNM which is not in the sim.

albar965 avatar Apr 25 '22 18:04 albar965

Your answer makes total sense, thanks for taking the time.

May I jump on your proposition and make a new request then ?

The proposition is good, and I used to do that at the beginning. But now I can't because if I download / update a scenery, I then have to put back everything then remove everything for the scan, so that the new one is taken in account without all others being removed.

May I jump on that for a different request then ? Can we have an option where to add a personal folder other than the Community one ? Then I'd be able to store all my sceneries in a folder, then only enable the ones I want in the Community one.

Option : LNM to ignore "links" in the Community folder. I use tools (like Addon Linker), in a very standard setup where all my addons are stored in a directory but only the ones I'm using are linked in the community. If LNM doesn't ignore links (or at least, links leading to subfolders of the "custom cirectory"), then it will count twice each every addon. Which is no big deal ;)

cowreth avatar Apr 30 '22 15:04 cowreth

Can we have an option where to add a personal folder other than the Community one ?

#296 proposes this but is more far future.

LNM to ignore "links" in the Community folder. I use tools (like Addon Linker), in a very standard setup where all my addons are stored in a directory but only the ones I'm using are linked in the community.

A bit difficult since there can be links everywhere in a path. This is normally transparent to the program.

albar965 avatar May 01 '22 21:05 albar965

Fixed with d0fe68ae8b0d3c110deee907b411cad92c906ef9

albar965 avatar Aug 27 '22 13:08 albar965