Jump to content
LaunchBox Community Forums

Slow game launch


mathflair

Recommended Posts

I've noticed in the past that when I edit a game or launch LaunchBox/BigBox that it will take up to 20 seconds. Now, I have been noticing that launching a game has also been taking a long time. I do have a large ROM collection (~17,000) items, but it seems extreme that it would take so long to launch a game.
Link to comment
Share on other sites

This also happens to me, as my collection is quite large as well. What I do is have five separate LaunchBox's, one for Arcade, Computer, Console, Handheld and Pinball. Depending on which LaunchBox I use, the times vary from 3 seconds to around 6 seconds now. (before it was around 15 seconds)
Link to comment
Share on other sites

@Bil I have been contemplating doing exactly what you described to my Launchbox setup to eliminate some of the clutter in the platform list and to lessen the load due to my almost 11,000 game library (- Mame Gamecube PS1 and Wii and a few others which I haven't gotten around to adding just yet) That or doing a Nintendo, Sega, Atari, Sony and Miscellaneous setup. As for slow game launch I started adding a few PS1 games today but I am loading the games from a Windows Home Server I have and its taking more than a minute to actually start the emulator so I am copying all the files to an external that I have for my computer in the hopes that this will improve performance.
Link to comment
Share on other sites

I've already split my libraries. Still, this is an unnecessary delay, and I curious about what is being done to fix it. I understand that the emulator settings need to be grabbed and the game's application path, but in my own LaunchBoxTools I can grab that info in about a second, so it doesn't seem like LaunchBox should lockup like this.
Link to comment
Share on other sites

Bil said What I do is have five separate LaunchBox's, one for Arcade, Computer, Console, Handheld and Pinball. Depending on which LaunchBox I use, the times vary from 3 seconds to around 6 seconds now. (before it was around 15 seconds)
How did you set this up in terms of where on your PC do you download/install each LaunchBox?
Link to comment
Share on other sites

I have a LaunchBox folder and within that a folder for each LaunchBox library named -Arcade, Computer, Console, Handheld and Pinball. To make it easier to select which one I want to load, I also use Jumplist Extender - https://code.google.com/p/jumplist-extender JL.jpg
Link to comment
Share on other sites

Hey guys, bear in mind that this is near the top of my list, and I will tackle it soon, but let me speak on it a bit. The way LaunchBox currently works is it loads the entire XML file and saves the entire XML file all at once. There's currently no way to do partial saves or loads, which I do have on my list. Furthermore, in order to properly sync and allow LaunchBox to be running on several machines at once and have them sync without overwriting data, LaunchBox loads the entire XML file from disk before saving, every single time. This is no problem for typical game collections, but obviously doesn't work well when you have tens of thousands of games. Back when I built those pieces I never expected anyone to import every game for every platform known to man. ;) Big Box gets around this more easily partially because the vast majority of it is read only, but I also added some logic to save in the background so you don't notice it. This is more of a workaround than a true fix, though. The actual solution will involve several steps: - Launch games *before* loading and saving so they launch immediately (this is easy and will be done very soon) - Separate out the single XML file into several XML files for each data type, so that saving and loading is quicker (and possibly separate out platforms as well) - Instead of re-loading from disk for every save operation, use a file system watcher to detect when the XML file(s) change, and reload only when necessary So anyways, this isn't near as simple of an issue to tackle as it seems. Please bear with me; I'm hoping to wrap up the list view tonight and this will be the very next improvement to make.
Link to comment
Share on other sites

Yeah, there's nothing in them that I really need, but of course it would be a relatively big undertaking to replace it. That code is all isolated though so it wouldn't be horrible. I'd just have to be really careful with compatibility with previous XML file versions. As-is, the latest versions will load XML files all the way back to 1.0.
Link to comment
Share on other sites

Xdocument is great and easy to use. It's only downside is it loads the while file into memory. I know a refectory is a big deal, but it might get you most of the speed you want with little other changes. If you want an example of using XDocument with LaunchBox data, feel free to take a look at the source for LaunchBox Tools.
Link to comment
Share on other sites

I too had the same problem. I made a link in the games folder of Launchbox, imported it as a game in the relevant platform section and only imported my favorites. Then if i have to grab a game i can launch it from the folder of all the games instead. Sorry for off topic:
Bil said I have a LaunchBox folder and within that a folder for each LaunchBox library named -Arcade, Computer, Console, Handheld and Pinball. To make it easier to select which one I want to load, I also use Jumplist Extender - https://code.google.com/p/jumplist-extender JL.jpg
@Bil: i too have fs uae! incredible program - i launch fs uae arcade inside launchbox, works extremely well! (its an offline setup so i dl'ed a snapshot of images used for displaying the game from http://oagd.net/download! try it out its GREAT!
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...