Author Topic: Arcadeflow theme v 17.1 [Release] Updated 22 March 2024  (Read 547920 times)

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #690 on: December 06, 2019, 11:23:20 AM »
Unfortunately large romlist loading is still slow. It took 30 seconds to load romlist with 60000 games. When I use "Basic" theme instead of Arcade Flow it only takes couple of seconds.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #691 on: December 07, 2019, 02:36:34 AM »
Unfortunately large romlist loading is still slow. It took 30 seconds to load romlist with 60000 games. When I use "Basic" theme instead of Arcade Flow it only takes couple of seconds.

I'm going to investigate this issue next week, sadly I don't have such a large romlist. Can you share your romlist text file (it's in the romlist folder inside Attract Mode folder) to my personal email?

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #692 on: December 07, 2019, 03:24:04 AM »
I have added large romlist as an attachment to this post. Let me know if you need anything else.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #693 on: December 07, 2019, 11:06:38 AM »
I have added large romlist as an attachment to this post. Let me know if you need anything else.

Thank you, with Arcadeflow 6.0 I have a 18 second "boot" delay, which is a bit too much admittedly. It seems that Arcadeflow up to 5.4 was much faster, I'll check what changed meanwhile. You can try an older version of Arcadeflow to see if it's better.

The culprit seems to bee the sorting algorithm, that's the main change between 5.4 and 5.5...
« Last Edit: December 07, 2019, 11:08:49 AM by zpaolo11x »

Yaron2019

  • Guest
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #694 on: December 07, 2019, 12:29:54 PM »
I have added large romlist as an attachment to this post. Let me know if you need anything else.

I have found the problem: "Weekend Pussy Hunt 03"  ;D  ;D


yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #695 on: December 07, 2019, 01:36:56 PM »
You can try an older version of Arcadeflow to see if it's better.

I have tried 5.4 and it took only 4 seconds to load the same romlist.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #696 on: December 08, 2019, 01:08:52 AM »
I have tried 5.4 and it took only 4 seconds to load the same romlist.

Because 5.4 didn't use sorting... Please if you have time try this layout.nut file, it should reduce the startup time by about half. If you can post the log output it would be helpful

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #697 on: December 08, 2019, 12:01:36 PM »
I have tried 5.4 and it took only 4 seconds to load the same romlist.

Because 5.4 didn't use sorting... Please if you have time try this layout.nut file, it should reduce the startup time by about half. If you can post the log output it would be helpful

Should I use it in 6.0 version?

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #698 on: December 08, 2019, 01:23:17 PM »
Should I use it in 6.0 version?

yes it replaces the previous layout.nut

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #699 on: December 09, 2019, 11:22:31 AM »
Here is the requested log

This version took 20 seconds to load.
I have also tried to comment out two z_listsort() calls in code and it was reduced down to 15 secons, so if it's sorting it's not sorting alone which causes slowdowns.
« Last Edit: December 09, 2019, 11:26:25 AM by yxiie »

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #700 on: December 09, 2019, 02:00:46 PM »
This version took 20 seconds to load.
I have also tried to comment out two z_listsort() calls in code and it was reduced down to 15 secons, so if it's sorting it's not sorting alone which causes slowdowns.

Well the function you commented does the actual sorting, but there's another function that prepares the whole list, getting all the data from multiple fe.game_info calls. From the logs this  step takes around 13 seconds in your setup. I've prepared a new layout where this function is reduced to the minimum, instead of loading all the data it loads only what is needed for other sorting.
I'm sorry sorting seems not well suited for such large lists, and on your system the performance hit is pretty severe. But right now sorting is so deep and pervasive in Arcadeflow that I can't honestly remove it altogether :(

yxiie

  • Full Member
  • ***
  • Posts: 28
    • View Profile
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #701 on: December 10, 2019, 09:37:31 AM »
I'm sorry sorting seems not well suited for such large lists, and on your system the performance hit is pretty severe. But right now sorting is so deep and pervasive in Arcadeflow that I can't honestly remove it altogether :(

Can you hint on what else should I comment to remove sorting altogether? I don't need sorting, the romlists are sorted anyway and sorting without articles A/The is not worth such a slowdown. I can write my own sorting script with articles for romlists in case of urgency.

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #702 on: December 11, 2019, 12:19:41 AM »
Can you hint on what else should I comment to remove sorting altogether? I don't need sorting, the romlists are sorted anyway and sorting without articles A/The is not worth such a slowdown. I can write my own sorting script with articles for romlists in case of urgency.

It's not so easy: the sorting implementation means that the fe.list is "duplicated" and all calls that refer to the fe.list, like getting artwork, getting fe.game_info etc refer to this list instead of the usual fe.list. The easiest way to get rid of sorting is to use the version of Arcadeflow that didn't have that implemented, which is 5.4 if I'm not mistaken.

By the way, you can also try this layout for arcadeflow 6.0 which should reduce even more the loading delay.

Sea Monkey

  • Jr. Member
  • **
  • Posts: 12
    • View Profile
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #703 on: December 15, 2019, 02:02:31 PM »
In layout.nut, Ln 63 and 64, you have misspelled 'Displays' as 'Displyas'. Also, all instances of

Code: [Select]
options = " ",
can be removed with no perceived ill effects.  It still doesn't fix the fact that the dividers have selectable options, but so far, I don't know how to fix that.
« Last Edit: December 15, 2019, 02:31:45 PM by Sea Monkey »

zpaolo11x

  • Hero Member
  • *****
  • Posts: 1233
    • View Profile
    • My deviantart page
Re: Arcadeflow theme v 6.0 [Release] Updated 2 December 2019
« Reply #704 on: December 15, 2019, 10:27:38 PM »
In layout.nut, Ln 63 and 64, you have misspelled 'Displays' as 'Displyas'.

Oh thank you for spotting that! Gonna fix it for 6.1 :)

Quote
Also, all instances of

Code: [Select]
options = " ",
can be removed with no perceived ill effects.  It still doesn't fix the fact that the dividers have selectable options, but so far, I don't know how to fix that.

I don't know if there's a way to fix that too, dividers in the option panel are a hack that I used to make the list more readable, it's not something officially supported.