mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-15 23:12:08 +00:00
Merge branch 'main' into feature/cache_profiles_and_optimize_loading_speed
This commit is contained in:
45
gen_cache.bat
Normal file
45
gen_cache.bat
Normal file
@@ -0,0 +1,45 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Usage: gen_cache.bat [Release|Debug|RelWithDebInfo]
|
||||
:: Generates per-vendor .cache files into resources/profiles/
|
||||
:: using generate_system_cache.exe from the local build tree.
|
||||
|
||||
set BUILD_CONFIG=%~1
|
||||
if "%BUILD_CONFIG%"=="" set BUILD_CONFIG=Release
|
||||
|
||||
set REPO=%~dp0
|
||||
set BUILD_DIR=%REPO%build
|
||||
set EXE=%BUILD_DIR%\src\dev-utils\%BUILD_CONFIG%\generate_system_cache.exe
|
||||
set PROFILES=%REPO%resources\profiles
|
||||
|
||||
if not exist "%EXE%" (
|
||||
echo ERROR: %EXE% not found.
|
||||
echo Build the project first with ORCA_TOOLS=ON, config %BUILD_CONFIG%.
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
if not exist "%PROFILES%" (
|
||||
echo ERROR: profiles dir not found: %PROFILES%
|
||||
exit /b 1
|
||||
)
|
||||
|
||||
:: DLLs live in the main Release output, not next to the tool exe
|
||||
set PATH=%BUILD_DIR%\src\%BUILD_CONFIG%;%PATH%
|
||||
|
||||
echo Generating system presets cache...
|
||||
echo Tool : %EXE%
|
||||
echo Profiles: %PROFILES%
|
||||
echo.
|
||||
|
||||
"%EXE%" --path "%PROFILES%" --log_level 2
|
||||
if %ERRORLEVEL% neq 0 (
|
||||
echo.
|
||||
echo ERROR: generate_system_cache failed ^(exit %ERRORLEVEL%^).
|
||||
exit /b %ERRORLEVEL%
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Done. Cache files written to: %PROFILES%
|
||||
dir /b "%PROFILES%\*.cache" 2>nul
|
||||
endlocal
|
||||
51
remove_cache.bat
Normal file
51
remove_cache.bat
Normal file
@@ -0,0 +1,51 @@
|
||||
@echo off
|
||||
setlocal
|
||||
|
||||
:: Removes all OrcaSlicer cache files so the next launch rebuilds from scratch.
|
||||
::
|
||||
:: Clears:
|
||||
:: resources/profiles/*.cache bundled per-vendor binary caches
|
||||
:: %APPDATA%\OrcaSlicer\system\*.cache user per-vendor binary caches
|
||||
:: %APPDATA%\OrcaSlicer\guide_profile_cache.json guide JSON cache
|
||||
|
||||
set REPO=%~dp0
|
||||
set PROFILES=%REPO%resources\profiles
|
||||
set USER_SYSTEM=%APPDATA%\OrcaSlicer\system
|
||||
set GUIDE_CACHE=%APPDATA%\OrcaSlicer\guide_profile_cache.json
|
||||
|
||||
echo Removing OrcaSlicer cache files...
|
||||
echo.
|
||||
|
||||
:: Bundled caches
|
||||
set FOUND=0
|
||||
for %%F in ("%PROFILES%\*.cache") do (
|
||||
del "%%F"
|
||||
echo Deleted: %%~nxF ^(bundled^)
|
||||
set FOUND=1
|
||||
)
|
||||
if "%FOUND%"=="0" echo No bundled .cache files found in resources\profiles\
|
||||
|
||||
echo.
|
||||
|
||||
:: User per-vendor caches
|
||||
set FOUND=0
|
||||
for %%F in ("%USER_SYSTEM%\*.cache") do (
|
||||
del "%%F"
|
||||
echo Deleted: %%~nxF ^(user^)
|
||||
set FOUND=1
|
||||
)
|
||||
if "%FOUND%"=="0" echo No user .cache files found in %USER_SYSTEM%\
|
||||
|
||||
echo.
|
||||
|
||||
:: Guide JSON cache
|
||||
if exist "%GUIDE_CACHE%" (
|
||||
del "%GUIDE_CACHE%"
|
||||
echo Deleted: guide_profile_cache.json
|
||||
) else (
|
||||
echo No guide_profile_cache.json found
|
||||
)
|
||||
|
||||
echo.
|
||||
echo Done. Next launch will rebuild all caches from JSON.
|
||||
endlocal
|
||||
BIN
resources/profiles/Afinia.cache
Normal file
BIN
resources/profiles/Afinia.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Anker.cache
Normal file
BIN
resources/profiles/Anker.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Anycubic.cache
Normal file
BIN
resources/profiles/Anycubic.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Artillery.cache
Normal file
BIN
resources/profiles/Artillery.cache
Normal file
Binary file not shown.
BIN
resources/profiles/BBL.cache
Normal file
BIN
resources/profiles/BBL.cache
Normal file
Binary file not shown.
BIN
resources/profiles/BIQU.cache
Normal file
BIN
resources/profiles/BIQU.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Blocks.cache
Normal file
BIN
resources/profiles/Blocks.cache
Normal file
Binary file not shown.
BIN
resources/profiles/CONSTRUCT3D.cache
Normal file
BIN
resources/profiles/CONSTRUCT3D.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Chuanying.cache
Normal file
BIN
resources/profiles/Chuanying.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Co Print.cache
Normal file
BIN
resources/profiles/Co Print.cache
Normal file
Binary file not shown.
BIN
resources/profiles/CoLiDo.cache
Normal file
BIN
resources/profiles/CoLiDo.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Comgrow.cache
Normal file
BIN
resources/profiles/Comgrow.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Creality.cache
Normal file
BIN
resources/profiles/Creality.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Cubicon.cache
Normal file
BIN
resources/profiles/Cubicon.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Custom.cache
Normal file
BIN
resources/profiles/Custom.cache
Normal file
Binary file not shown.
BIN
resources/profiles/DeltaMaker.cache
Normal file
BIN
resources/profiles/DeltaMaker.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Dremel.cache
Normal file
BIN
resources/profiles/Dremel.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Elegoo.cache
Normal file
BIN
resources/profiles/Elegoo.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Eryone.cache
Normal file
BIN
resources/profiles/Eryone.cache
Normal file
Binary file not shown.
BIN
resources/profiles/FLSun.cache
Normal file
BIN
resources/profiles/FLSun.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Flashforge.cache
Normal file
BIN
resources/profiles/Flashforge.cache
Normal file
Binary file not shown.
BIN
resources/profiles/FlyingBear.cache
Normal file
BIN
resources/profiles/FlyingBear.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Folgertech.cache
Normal file
BIN
resources/profiles/Folgertech.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Geeetech.cache
Normal file
BIN
resources/profiles/Geeetech.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Ginger Additive.cache
Normal file
BIN
resources/profiles/Ginger Additive.cache
Normal file
Binary file not shown.
BIN
resources/profiles/InfiMech.cache
Normal file
BIN
resources/profiles/InfiMech.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Kingroon.cache
Normal file
BIN
resources/profiles/Kingroon.cache
Normal file
Binary file not shown.
BIN
resources/profiles/LH.cache
Normal file
BIN
resources/profiles/LH.cache
Normal file
Binary file not shown.
BIN
resources/profiles/LONGER.cache
Normal file
BIN
resources/profiles/LONGER.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Lulzbot.cache
Normal file
BIN
resources/profiles/Lulzbot.cache
Normal file
Binary file not shown.
BIN
resources/profiles/M3D.cache
Normal file
BIN
resources/profiles/M3D.cache
Normal file
Binary file not shown.
BIN
resources/profiles/MagicMaker.cache
Normal file
BIN
resources/profiles/MagicMaker.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Mellow.cache
Normal file
BIN
resources/profiles/Mellow.cache
Normal file
Binary file not shown.
BIN
resources/profiles/OpenEYE.cache
Normal file
BIN
resources/profiles/OpenEYE.cache
Normal file
Binary file not shown.
BIN
resources/profiles/OrcaArena.cache
Normal file
BIN
resources/profiles/OrcaArena.cache
Normal file
Binary file not shown.
BIN
resources/profiles/OrcaFilamentLibrary.cache
Normal file
BIN
resources/profiles/OrcaFilamentLibrary.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Peopoly.cache
Normal file
BIN
resources/profiles/Peopoly.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Phrozen.cache
Normal file
BIN
resources/profiles/Phrozen.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Positron3D.cache
Normal file
BIN
resources/profiles/Positron3D.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Prusa.cache
Normal file
BIN
resources/profiles/Prusa.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Qidi.cache
Normal file
BIN
resources/profiles/Qidi.cache
Normal file
Binary file not shown.
BIN
resources/profiles/RH3D.cache
Normal file
BIN
resources/profiles/RH3D.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Raise3D.cache
Normal file
BIN
resources/profiles/Raise3D.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Ratrig.cache
Normal file
BIN
resources/profiles/Ratrig.cache
Normal file
Binary file not shown.
BIN
resources/profiles/RolohaunDesign.cache
Normal file
BIN
resources/profiles/RolohaunDesign.cache
Normal file
Binary file not shown.
BIN
resources/profiles/SecKit.cache
Normal file
BIN
resources/profiles/SecKit.cache
Normal file
Binary file not shown.
BIN
resources/profiles/SeeMeCNC.cache
Normal file
BIN
resources/profiles/SeeMeCNC.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Snapmaker.cache
Normal file
BIN
resources/profiles/Snapmaker.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Sovol.cache
Normal file
BIN
resources/profiles/Sovol.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Tiertime.cache
Normal file
BIN
resources/profiles/Tiertime.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Tronxy.cache
Normal file
BIN
resources/profiles/Tronxy.cache
Normal file
Binary file not shown.
BIN
resources/profiles/TwoTrees.cache
Normal file
BIN
resources/profiles/TwoTrees.cache
Normal file
Binary file not shown.
BIN
resources/profiles/UltiMaker.cache
Normal file
BIN
resources/profiles/UltiMaker.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Vivedino.cache
Normal file
BIN
resources/profiles/Vivedino.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Volumic.cache
Normal file
BIN
resources/profiles/Volumic.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Voron.cache
Normal file
BIN
resources/profiles/Voron.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Voxelab.cache
Normal file
BIN
resources/profiles/Voxelab.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Vzbot.cache
Normal file
BIN
resources/profiles/Vzbot.cache
Normal file
Binary file not shown.
BIN
resources/profiles/WEMAKE3D.cache
Normal file
BIN
resources/profiles/WEMAKE3D.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Wanhao France.cache
Normal file
BIN
resources/profiles/Wanhao France.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Wanhao.cache
Normal file
BIN
resources/profiles/Wanhao.cache
Normal file
Binary file not shown.
BIN
resources/profiles/WonderMaker.cache
Normal file
BIN
resources/profiles/WonderMaker.cache
Normal file
Binary file not shown.
BIN
resources/profiles/Z-Bolt.cache
Normal file
BIN
resources/profiles/Z-Bolt.cache
Normal file
Binary file not shown.
BIN
resources/profiles/blacklist.cache
Normal file
BIN
resources/profiles/blacklist.cache
Normal file
Binary file not shown.
BIN
resources/profiles/iQ.cache
Normal file
BIN
resources/profiles/iQ.cache
Normal file
Binary file not shown.
BIN
resources/profiles/re3D.cache
Normal file
BIN
resources/profiles/re3D.cache
Normal file
Binary file not shown.
Reference in New Issue
Block a user