raylibtech / rtools

rtools feedback and issues
17 stars 1 forks source link

[`rInstallFriendly`] Possible issues and improvements #31

Open raysan5 opened 11 months ago

raysan5 commented 11 months ago

List referenced from https://github.com/AuburnSounds/Dplug/issues/792

So a list of issues:

avelican commented 7 months ago

I think this is the right place to mention some feedback about the official raylib 5.0 installer, which seems to use the same code.

  1. On my machine, the window is tiny, text almost unreadable. Perhaps the DPI flag was not set for the raylib installer?
  2. Installation takes 01:53 (almost 2 minutes). Extracting the same folder (zipped with max compression) with 7-zip takes 10 seconds (>11x faster). *
  3. Nitpick / side-note: Side note: 7-zip can also create self-extracting exe, which gives similar performance (10 seconds), while reducing disk usage by nearly half (68MB vs 122MB). i.e. raylib installer is almost 2x bigger than the same files converted into "self extracting" 7zip exe. (This isn't an ad for 7-zip haha, the choice of using zip is probably a wiser option. Just thought it was interesting.)
  4. I wanted to take a look at the code to see what it's doing, but there is no code ;_;

* I also note (with some amusement) that the 7-zip utility can extract the raylib installer exe directly, and that it does this about 10x faster than the installer itself!

raysan5 commented 7 months ago

@avelican thank you very much for the feedback! Here my answers:

  1. There is a system ready to improve that but not enabled yet. Supporting HighDPI could be a bit tricky because if the system takes care of the scaling, the pixel-art style of the UI is highly distorted/blurry. The solution chosen is to detect if the monitor is HighDPI and scale x2 the window and the framebuffer (only if not going fullscreen). It will be implemented in next release.

  2. Current implementation of the installer processes two files per frame, that way it gives additional time to the installer to run an interactive game-banner, also the users have more time to focus on the sponsors button... In any case, multithreading is in the works for next release and this behaviour would be optional.

  3. About .zip vs .7z, rInstallFriendly implements a .zip decompressor but not a .7z decompressor, it's in the TODO list but it requires some work... in any case both option should be supported.

  4. I'm afraid this project is close-source, like some of my other commercial tools...

    I also note (with some amusement) that the 7-zip utility can extract the raylib installer exe directly, and that it does this about 10x faster than the installer itself!

That's because the .zip is directly embedded into the executable with no encryption, 7-zip probably scans the file and detects the .zip header and so it's able to process it.

acoto87 commented 2 weeks ago

Hey, I want to add a couple to this list, mainly from the UX of the app itself:

https://github.com/user-attachments/assets/d199af2e-4ed7-4aed-8dea-e712d33e3f81