rickomax / psxprev

PSXPREV - Playstation (PSX) Files Previewer/Extractor
BSD 2-Clause "Simplified" License
193 stars 10 forks source link

Options to automatically draw everything to VRAM and select models on startup #53

Closed trigger-segfault closed 1 year ago

trigger-segfault commented 1 year ago

Describe the issue: Currently it's cumbersome to draw textures to VRAM when you're closing and reopening the program in quick succession. When going to the Textures tab, after scrolling down you get brought back up temporarily and have to scroll down again.

Solution: Although not a direct solution to the above, having the ability to automatically draw all textures to VRAM via command line option and/or button/menu item would make things much quicker, though it may cause a bit of lag when there are a lot of textures.

To compliment this, also having an option to automatically select and display the first-loaded model would be convenient, especially when using the Select File method.

Another option that would be nice to have enabled by default is limb attachment.

Command line options:

-drawall     : Draw all loaded textures to VRAM after the scan is complete.
-selectfirst : Select and display the first-loaded model after the scan is complete.
 =alt=
-selectmodel

-attachlimbs : Enable auto attach limbs on startup.
 =alt=
-limbs

These options could alternatively select the first model the moment it's loaded, and also draw each texture to VRAM the moment it's loaded.

A command line option to only apply the first model's textures could also be added, but it's kind of situational, since it would only be useful for HMDs.

-drawfirst   : Draw textures for the first-loaded model to VRAM.