EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: What if...  (Read 9222 times)

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 137.0.0.0 Chrome 137.0.0.0
    • View Profile
What if...
« on: 16 June 2025, 17:43 »

....you take a "TOSEC - DAT Pack - Complete (4743) (TOSEC-v2025-03-13)" zip file containing 4743 datfiles and drop them in the old clrmamepro profiler?
Well, ok, a select dialog opens rather quickly, you select all 4743 dats and add them to cmpro....so..what happens? On a decent PC it takes about ~5 minutes until the dats are added to the profiler....so..keep that in mind for now... As you might know, for the new clrmame, I'm currently working on the profiler. Unfortunately I had not that much time lately but I want to give you an update what happened.

So maybe start with some common core/ui news:
UI:
- fixed: don't remember window placement on first close without changing tabs
Core:
- misc:  tweaked the determination of best fitting rompath a bit for users which split chds/roms
- misc:  updated to spdlog 1.15.3
- fixed: scanner, updateMissingInformation phase isn't thread safe and could lead to crash
- fixed: resolved potential reallocation/dangling pointer issues


Nothing really big, but fixing one thread safe bug and resolving possible reallocation issues improves stability.

Now back to the profiler...it looks a bit like the old one, on the left side you will have a folder structure, on the right the belonging files for the selected folder. You can add profiles (either by context menu or by drag'n drop), you can move folders around my drag'n drop, you can of course add and delete folders via context menu.

The main handling of files and folders, is mostly done but there are a couple of things which need to get implemented, the actual color coding/different icons, some more columns on the right, more progress dialog handling etc....maybe I find some more time in the next days...

now back to that "what if" thing from the beginning. Here is a video which shows what happens if you drag'n drop the mentioned zipfile in the new profiler. The video grabbing isn't perfectly grabbing the drag'n drop operation which happens within the first seconds of the video but you can see how long it takes to fully parse (!) (did I mention that old clrmamepro only reads in the datfile header) 4743 datfiles, select the tosec folder to show the files in there, move the tosec-pix folder insinde the tosec-iso folder (that will do the same on your harddisk then) and restart clrmameui to see how long in takes after an import...

https://mamedev.emulab.it/clrmamepro/binaries/profiler.mp4

Actually, I think I can make it faster.....but time till tell

Keep in mind, it's just a start for a profiler, what you really need when working with 4k datfiles is a good rompath assignment management and batch runs.......again...time will tell...
« Last Edit: 16 June 2025, 17:48 by Roman »
Logged


Ziggy

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 4
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Firefox 139.0 Firefox 139.0
    • View Profile
Re: What if...
« Reply #1 on: 17 June 2025, 03:46 »

Wow Roman!  That looks really fast!  Why is the old cmpro so much slower?  Is it third party code that bogged you down or just a better design for the new clrmame?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 121
  • Offline Offline
  • Posts: 3640
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 137.0.0.0 Chrome 137.0.0.0
    • View Profile
Re: What if...
« Reply #2 on: 17 June 2025, 06:58 »

Actually I just played around with it a bit and if I do some threading here and some other logging there, I can make it twice as fast for adding the zip compared to yesterday....

Well what is different compared to the old cmpro...most of it is design, cleaner coding and not forget pugixml which does a marvelous job when parsing xmls......
« Last Edit: 17 June 2025, 06:59 by Roman »
Logged

Mucci

  • Member
  • *
  • Karma: 25
  • Offline Offline
  • Posts: 65
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 137.0.0.0 Chrome 137.0.0.0
    • View Profile
    • MAMEGUIDE
Re: What if...
« Reply #3 on: 17 June 2025, 09:50 »

Wow great progress in the new profiler, thanks Roman
Logged
Pages: [1]   Go Up
 

Page created in 0.061 seconds with 15 queries.