Previous Thread
Next Thread
Print Thread
Page 44 of 116 1 2 42 43 44 45 46 115 116
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Well, I found a corner case where ROM state filtering isn't necessary: whenever the game list is reloaded and no states (or BIOS / device sets) have been disabled, the filter run is actually a useless overhead... this will be changed in SVN soon, just need a little more testing.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
OK, that's in SVN r5014 now... plus the additional corner case when an individual set's ROM state is checked and doesn't change, then running the filter is also useless. Anyway, the above mentioned change will speed up many cases because ROM state filtering is activated by default, but many users don't really change the filter settings.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Nov 2011
Posts: 175
O
Senior Member
Offline
Senior Member
O
Joined: Nov 2011
Posts: 175
@Rene i dont take your time for my problem with speed , sorry
now with 5014 : "Rom state filer" on- off, time it's same - 31-32 sec.
I think that is good, many tnx for whole smile

Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
I've just committed a few more optimizations regarding the filter and hope they work fine for all... good night smile!


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Loading of cached XML data has been optimized a bit as well in SVN r5017. For me this saves between 15% and 20% of time spent on this job.

Overall I'm down to "less than 13 seconds" start-up time now with MAME SVN r23765 and all current dat-sources:

Code:
13:02:41.421: M.A.M.E. Catalog / Launcher II v0.40, SVN r5017 (Qt 4.8.4, SDLMAME, us)
13:02:41.422: Phonon features enabled - using Phonon v4.4.0
13:02:41.422: SDL joystick support enabled - using SDL v1.2.14
13:02:41.422: processing global emulator configuration
13:02:41.422: creating template configuration map
13:02:41.423: template info: emulator = SDLMAME, version = 0.149, format = 0.2.6
13:02:41.574: image cache size set to 128 MB
13:02:41.577: shortcut map is clean
13:02:41.578: joystick map is clean
13:02:41.622: SDLMAME output notifier FIFO created
13:02:41.774: loading game info DB
13:02:43.512: done (loading game info DB, elapsed time = 00:01.737)
13:02:43.513: 28257 game info records loaded
13:02:43.514: loading emulator info DB
13:02:44.875: done (loading emulator info DB, elapsed time = 00:01.361)
13:02:44.875: 8766 emulator info records loaded
13:02:44.876: loading software info DB
13:02:47.060: done (loading software info DB, elapsed time = 00:02.178)
13:02:47.064: 26886 software info records loaded
13:02:47.069: determining emulator version and supported sets
13:02:47.208: done (determining emulator version and supported sets, elapsed time = 00:00.137)
13:02:47.210: emulator info: type = MAME, version = 0.149
13:02:47.210: 28628 supported (non-device) sets
13:02:47.210: loading catver.ini
13:02:47.396: done (loading catver.ini, elapsed time = 00:00.186)
13:02:47.398: 28487 category / 28613 version records loaded
13:02:47.398: loading XML data from cache
13:02:49.639: done (loading XML data from cache, elapsed time = 00:02.241)
13:02:49.655: loading ROM state from cache
13:02:49.725: done (loading ROM state from cache, elapsed time = 00:00.070)
13:02:49.726: 28662 cached ROM states loaded
13:02:49.727: processing game list
13:02:49.729: loading game data from game list cache
13:02:49.733: pre-caching icons from ZIP archive
13:02:50.930: done (pre-caching icons from ZIP archive, elapsed time = 00:01.197)
13:02:50.930: 9932 icons loaded
13:02:52.295: done (loading game data from game list cache, elapsed time = 00:02.565)
13:02:53.663: sorting game list by game description in ascending order
13:02:54.202: restoring game selection
13:02:54.347: done (processing game list, elapsed time = 00:04.620)
13:02:54.347: 28561 games, 67 BIOS sets and 34 devices loaded
13:02:54.347: ROM state info: L:28662 C:25748 M:2911 I:2 N:1 U:0
13:02:54.350: loading favorites
13:02:54.355: done (loading favorites)
13:02:54.355: loading play history
13:02:54.355: done (loading play history)


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Nov 2011
Posts: 175
O
Senior Member
Offline
Senior Member
O
Joined: Nov 2011
Posts: 175
I think that is enought with disable "Rom state filter": 25 sec.

Code:
14:47:36.122: M.A.M.E. Catalog / Launcher II v0.40, SVN r5017 (Qt 4.8.4, MAME, us)
14:47:36.123: Phonon features enabled - using Phonon v4.4.0
14:47:36.124: SDL joystick support enabled - using SDL v1.2.15
14:47:36.124: processing global emulator configuration
14:47:36.126: creating template configuration map
14:47:36.126: template info: emulator = MAME, version = 0.149, format = 0.2.6
14:47:36.526: image cache size set to 64 MB
14:47:36.533: shortcut map is clean
14:47:36.534: joystick map is clean
14:47:36.810: loading game info DB
14:47:38.672: done (loading game info DB, elapsed time = 00:01.861)
14:47:38.673: 28340 game info records loaded
14:47:38.677: loading emulator info DB
14:47:40.182: done (loading emulator info DB, elapsed time = 00:01.504)
14:47:40.183: 8843 emulator info records loaded
14:47:40.187: loading software info DB
14:47:42.844: done (loading software info DB, elapsed time = 00:02.656)
14:47:42.845: 27308 software info records loaded
14:47:42.863: determining emulator version and supported sets
14:47:43.134: done (determining emulator version and supported sets, elapsed time = 00:00.270)
14:47:43.135: emulator info: type = MAME, version = 0.149
14:47:43.136: 28627 supported (non-device) sets
14:47:43.136: loading catver.ini
14:47:43.378: done (loading catver.ini, elapsed time = 00:00.242)
14:47:43.379: 28661 category / 28661 version records loaded
14:47:43.380: loading XML data from cache
14:47:47.876: done (loading XML data from cache, elapsed time = 00:04.496)
14:47:47.891: loading ROM state from cache
14:47:48.002: done (loading ROM state from cache, elapsed time = 00:00.111)
14:47:48.003: 28661 cached ROM states loaded
14:47:48.006: processing game list
14:47:48.009: loading game data from game list cache
14:47:48.017: pre-caching icons from ZIP archive
14:47:48.654: done (pre-caching icons from ZIP archive, elapsed time = 00:00.637)
14:47:48.655: 3927 icons loaded
14:47:50.552: done (loading game data from game list cache, elapsed time = 00:02.542)
14:47:58.247: sorting game list by year in descending order
14:47:58.652: restoring game selection
14:48:01.274: done (processing game list, elapsed time = 00:13.269)
14:48:01.275: 28560 games, 67 BIOS sets and 34 devices loaded
14:48:01.276: ROM state info: L:28661 C:25747 M:2914 I:0 N:0 U:0
14:48:01.281: loading favorites
14:48:01.282: done (loading favorites)
14:48:01.283: loading play history
14:48:01.286: done (loading play history)


Many tnx smile

Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
It's getting better smile... software-info DB loading has been slightly improved as well in r5018. The difference is just about 100ms here in case of MAME, and 300ms in case of MESS.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: Mar 2001
Posts: 16,923
Likes: 57
R
Very Senior Member
Online Content
Very Senior Member
R
Joined: Mar 2001
Posts: 16,923
Likes: 57
Is there some reason you don't just store the cache in a binary format? You could start up almost instantly then.

Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Depends on which "cache" you mean... but the general answer is "not really" because I have to load the list-views with all these items and can't do this instantly anyway. The XML data is required on-demand (mostly) later in the game, and the game/machine list itself is cached in an already parsed way so that takes just a second to load... and the dat-sources are in varying formats smile.

However, I plan to store the game/machine list data in a database which I could then use as the base for a Qt model/view approach. But for the XML itself I can't really do this.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Joined: May 2008
Posts: 4,930
Likes: 24
Q
Very Senior Member
Offline
Very Senior Member
Q
Joined: May 2008
Posts: 4,930
Likes: 24
Originally Posted By qmc2
However, I plan to store the game/machine list data in a database which I could then use as the base for a Qt model/view approach.

This is mainly to save memory, but as a side effect it should also contribute to drastically faster loading times. That's such a major change that it actually scares me a bit smile.


A mind is like a parachute. It doesn't work unless it's open. [Frank Zappa]
Page 44 of 116 1 2 42 43 44 45 46 115 116

Moderated by  qmc2 

Link Copied to Clipboard
Who's Online Now
2 members (Dullaron, 1 invisible), 29 guests, and 9 robots.
Key: Admin, Global Mod, Mod
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Forum Statistics
Forums9
Topics9,103
Posts119,275
Members5,019
Most Online890
Jan 17th, 2020
Our Sponsor
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!

Superior Solitaire
Forum hosted by www.retrogamesformac.com