How wurielle/auto-lossless-scaling works
Auto Lossless Scaling is a Windows desktop app that remembers per-game scaling preferences and automates Lossless Scaling (LS), optionally alongside RivaTuner. Users launch Auto LS, opt a running game in with a shortcut, then future launches are detected and scaled after a delay. The graph separates the Electron runtime, process-to-scaling workflow, external scaling integrations, and settings UI. README statements establish several product behaviors; some internal links to the renderer and process-watcher implementation are not shown in sampled source, so those links are omitted or marked unverified.
Main entry points: app.ts Electron App · auto-lossless-scaling.ts Auto-Scaling Control · index.ts Automation Manager · store.ts Settings Store
Components 23
Desktop Runtime
- Electron App
apps/app/electron/app.ts - Runtime Entry
apps/app/electron/main.ts - Settings Store
apps/app/electron/store.ts - Event Emitter
apps/app/electron/events.ts - Windows Utilities
apps/app/electron/utils/native.ts - File Utilities
apps/app/electron/utils/filesystem.ts
Game Workflow
- Process Watcher
apps/app/electron/process-watcher-instance.ts - Process Detection
packages/process-watcher/index.js - Game Profiles
apps/app/electron/game-library.ts - Auto-Scaling Control
apps/app/electron/auto-lossless-scaling.ts
Scaling Integrations
- Automation Manager
apps/app/electron/automations/index.ts - LS Automation
apps/app/electron/automations/lossless-scaling.ts - Opti-Scaler
apps/app/electron/automations/opti-scaler.ts - RivaTuner Automation
apps/app/electron/automations/riva-tuner.ts
Settings UI
- Renderer Entry
apps/app/src/main.tsx - App Shell
apps/app/src/app.tsx - Home Settings
apps/app/src/teams/home/views/index.tsx - Settings Shell
apps/app/src/components/shells/default-shell.tsx - Process Cards
apps/app/src/components/cards/process-card.tsx
Other components
- User
- Game Process
- Lossless Scaling
- RivaTuner
Connections 28
- User → Electron App: starts
- Runtime Entry → Electron App: loads
apps/app/electron/main.ts - Electron App → Settings Store: reads and updates
apps/app/electron/app.ts - Electron App → Process Watcher: handles events
apps/app/electron/app.ts - Process Watcher → Game Process: detects launches
- Electron App → Auto-Scaling Control: opts in or out
apps/app/electron/app.ts - Electron App → Auto-Scaling Control: scales detected game
apps/app/electron/app.ts - Electron App → Settings Store: updates profile
apps/app/electron/app.ts - Auto-Scaling Control → Settings Store: uses settings
apps/app/electron/auto-lossless-scaling.ts - Auto-Scaling Control → Automation Manager: uses automations
apps/app/electron/auto-lossless-scaling.ts - Automation Manager → LS Automation: registers
apps/app/electron/automations/index.ts - Automation Manager → RivaTuner Automation: registers
apps/app/electron/automations/index.ts - Automation Manager → Opti-Scaler: loads
apps/app/electron/automations/index.ts - LS Automation → Lossless Scaling: launches and scales
- RivaTuner Automation → RivaTuner: launches
- User → Game Process: launches
- User → Electron App: opts in by shortcut
- Electron App → Windows Utilities: gets active process
apps/app/electron/app.ts - Electron App → Event Emitter: subscribes
apps/app/electron/app.ts - Electron App → File Utilities: reads icon path
apps/app/electron/app.ts - Renderer Entry → App Shell: renders
apps/app/src/main.tsx - App Shell → Home Settings: renders
apps/app/src/app.tsx - Home Settings → Settings Shell: uses
- Settings Shell → Settings Store: updates settings
- Home Settings → Process Cards: displays profiles
- Process Watcher → Process Detection: detects processes
- Auto-Scaling Control → Game Profiles: uses profiles
apps/app/electron/auto-lossless-scaling.ts - Electron App → Event Emitter: notifies renderer
apps/app/electron/app.ts