Skip to content

v5.1 Stable Release

Choose a tag to compare

@Ivan-Ayub97 Ivan-Ayub97 released this 11 Dec 09:10
· 33 commits to main since this release

Version 5.1

Release date: December 11, 2025
Kernel Version: 5.1.0 (Codename: Asynchronous-Warlock)
Architecture: Distributed / Multi-Threaded UI

Asynchronous I/O Architecture & File Queue System

The application's file ingestion and management layer has been architecturally decoupled from the main GUI thread. The legacy synchronous file loader has been deprecated in favor of a reactive, non-blocking subsystem driven by the new file_queue_manager.py module.

Multi-Threaded Ingestion Pipeline (FileQueueManager)

  • Parallelized Metadata Extraction: Implemented a ThreadPoolExecutor worker pool strategy. Heavy I/O operations—including cv2.VideoCapture metadata reading, frame extraction, and resolution calculation—are now offloaded to background threads, eliminating UI freezes ("Application Not Responding") during batch imports.
  • Thread-Safe Message Bus: A queue.Queue messaging pattern was established to marshal data between worker threads and the main Tkinter loop. The _check_queue polling mechanism ensures atomic widget updates, preventing race conditions and segmentation faults common in multi-threaded GUI applications.
  • Object-Oriented State Encapsulation: Introduced the QueueItem class to encapsulate file-specific state (loading status, error flags, thumbnail blobs, and resolution metrics). This allows for granular error handling where a single corrupt file no longer halts the entire batch loading process.
  • Lazy Thumbnail Generation: Video and image thumbnails are now generated and cached asynchronously using a secure PIL <-> OpenCV bridge, reducing initial memory footprint during large batch operations.

Viewport State Management (Main Orchestrator)

  • Dynamic View Switching: The main application logic now implements explicit view controllers (show_drop_zone and show_file_manager) to seamlessly toggle between the "Drag & Drop" landing state and the active "Queue Management" interface.
  • Drop Zone Expansion: The drag-and-drop event listeners have been registered across the entire container hierarchy (drop_zone_frame, buttons, labels), eliminating "dead zones" where file drops were previously ignored.

Preferences System Re-engineering

The configuration subsystem (warlock_preferences.py) has been rewritten from the ground up, abandoning the linear vertical scrolling design for a categorized Sidebar Navigation Architecture.

Diagnostic & Maintenance Suite

  • Integrated Log Viewer: Embedded a read-only CTkTextbox that dynamically streams the content of the active warlock_studio.log file. Users can now audit FFmpeg stderr output and internal errors directly within the GUI without navigating the host file system.
  • Debug Package Export: Introduced the export_debug_info routine. This function aggregates the current JSON configuration, recent log files, and system hardware telemetry into a timestamped .zip archive, streamlining the bug reporting process for developers.
  • Binary Path Overrides: Added manual path selectors for ffmpeg.exe and exiftool.exe. This resolves path resolution conflicts on systems with non-standard environment variables or portable deployments.

Hardware & Execution Configuration

  • Strict ONNX Provider Enforcement: Implemented a user-accessible selector for the AI Execution Backend (Auto, CUDA, DirectML, CPU). This allows users to forcefully bypass the internal driver heuristic engine if automatic detection fails on hybrid GPU setups.
  • Refined "NEO Engine": The hardware scanning logic was optimized to prioritize GPUtil direct querying for NVIDIA GPUs while maintaining a robust WMI/WQL fallback chain for AMD and Intel architectures, ensuring accurate VRAM reporting.

AI Algorithm Precision & Mathematical Corrections

RIFE Dynamic Padding (Artifact Elimination)

Resolved a critical mathematical deficiency in the RIFE (Real-Time Intermediate Flow Estimation) interpolation pipeline where input resolutions not divisible by 32 generated black banding or green-screen artifacts.

  • Reflective Padding Logic: Implemented pad_image_to_divisor within the AI_interpolation class. This routine calculates the modulo-32 remainder and dynamically applies reflective border padding (cv2.copyMakeBorder) to the input tensor before inference.
  • Surgical Post-Inference Cropping: A corresponding crop_padding routine removes the synthetic borders from the output tensor with pixel-perfect precision, ensuring the generated frames match the original resolution exactly without visual distortion.

Face Restoration Stabilization

  • Float32 Precision Enforcement: The AI_face_restoration class now strictly enforces float32 precision. The experimental fp16 auto-detection was removed to prevent NaN (Not a Number) tensor propagation observed on specific CUDA driver versions and older Pascal/Maxwell architectures.
  • Alpha Channel Integrity Protocol: Refined the RGBA handling pipeline ("Split-Merge Strategy"). The Alpha channel is now strictly processed via Bicubic interpolation, while only the RGB channels undergo GAN-based restoration. This prevents the generation of noise artifacts in transparency masks.

Operational Safety & Visual Identity

Process Execution Guards

  • Confirmation Interceptor: Injected a messagebox.askyesno guard clause into the upscale_button_command. This prevents accidental initiation of resource-intensive workloads.
  • Shutdown Race Condition Fix: The on_app_close handler now captures window attributes (is_topmost) before the destruction sequence begins, resolving TclError: application has been destroyed exceptions that previously corrupted preference saving on exit.

"Warlock Identity" Thematic Unification

  • High-Contrast Palette: The interface theme has been standardized to a "Dark & Gold" palette. Backgrounds have been deepened to #0A0A0A (Near Black) to maximize contrast for image previewing, with semantic color coding (Success Green, Error Red, Warlock Gold) applied consistently across the new Preferences and Queue modules.