Comments (11)
good news friends!
by watching closely what goes on during a rom scan, I was able to optimize some things...
scanning roms on my system went from 11 minutes to 2.5 minutes after the optimizations! successs!
also, I didn't have to change the way things work internally - as it is rather complex. :)
from fbneo.
The only way to get the same hash every time you zip a file is to use torrentzip, i don't think it would be a good idea :
- we would have to maintain a database of crc for every torrentzipped roms, seems like a pain in the ass
- what about 7z ?
- what about custom neogeo.zip with "custom" unibios ?
If we wanted to speed up scanning, i would go with the following instead :
- only care about the basename of the zip/7z file
- only check content (wrong crc and/or missing files) when launching the game, show a warning but allow the game to be launched anyway if file list match but not crcs, show an error if file list doesn't match.
from fbneo.
Whilst I am sure there is some scope for speeding it up, there are a lot of different ways of creating a zip file with different compression levels, etc so I am not sure that hashing the zip would be the best idea.
from fbneo.
I don't know what could be the best way, but anyway old mame release as mame32k or fba shuffle can perform the rom scan in more less time.
On old pc like eeepc series a entire romset scan during 30 or too much time.
from fbneo.
I've been thinking about this for years, actually. This is what I came up with and on todo list:
Make an option to just check if the zip is there, then when the game loads, it can tell you if something is missing. This feature will, of course be configurable, (normal scan, fast scan..)
best regards,
- dink
from fbneo.
Addendum to previous comment:
Fast Scan mode has a drawback which really can't be worked around:
lets say you have pacman.zip for arcade, it will also show that you have pacman set for MSX (for example), and coleco.
.. but you don't have to use fastscan mode if you don't want to.. That's why it will be an option :)
from fbneo.
One work around for that could be to have system specific directories? Will be a pain for anyone moving from FBA though, but if we are going to change things, now would be a good time to do it :)
from fbneo.
tmaul, thought about that - but I don't like that idea at all. :/
from fbneo.
In the test above, I have 5479 romsets total.
A friend tested with a new laptop and nearly complete fb-romset, times are:
4:00 old version
3:06 new version
Saving a minute doesn't seem like much, but lets hope the new code will have more effect on older pc's.
best regards,
- dink
from fbneo.
I have about 9000 roms, some duplicated, and an initial scan takes about 2 mins. Clicking "scan roms" a second time takes about 20 seconds, so maybe windows is caching some filesystem stuff? It's loads quicker though, was taking about 5-8mins before.
from fbneo.
2 mins is better than 5-8, success! :D
The subsequent scans taking just 20 seconds is def. benefit of caching.
thanks for testing!
from fbneo.
Related Issues (20)
- Vs. T.K.O. Boxing support wrong name in dat file. HOT 2
- Outrun Enhanced Edition 2.0.3 (outruneh) not working correctly? HOT 10
- Number of sets HOT 2
- Chase bombers no move button inside service mode HOT 3
- [retroarch] Cheat settings (core options) are reset at every game launch HOT 2
- Adding Art of Fighting 2 Hack game HOT 2
- Violent Storm BOSS SHADOW HOT 36
- [RetroArch core] Global Champion - Switch Test: Buttons 4 and 5 Don't Register Together for 1P HOT 5
- Nostradamus run ahead not working HOT 2
- [Video System] sonicwi - Sonic Wings (Japan) - Black screen but audio works HOT 4
- NeoGeo Red Warning Screen on several titles HOT 5
- Dual-stick controls for Forgotten Worlds HOT 72
- FBNeo IPS NeoGeo /kof94/95 it does not work HOT 5
- Trying to translate Chinese, garbled characters appear. HOT 4
- toy land adventure save dip changes dont work HOT 1
- Update SFZ3Mix CRC to 0.28 HOT 1
- shadow dancer graphic glitches HOT 6
- Violent Storm ATTRACT MODE MISSING TRANSITIONS HOT 4
- Add some fantastic HBMame hacks HOT 2
- Change name rom for my street fighter 2 hack game HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fbneo.