Skip to content

AvsAffinity v1.1.0

Latest

Choose a tag to compare

@tordona tordona released this 13 Nov 15:16
30340e5

AvsAffinity v1.1.0

Core Changes

  • Per-instance affinity tracking & restoration: Replaced thread_local state with per-filter-instance thread tracking (std::shared_mutex + DuplicateHandle), restoring previous thread affinity masks when PinWorkerThreads is destroyed.
  • AviSynth+ multithreading: Added SetCacheHints(CACHE_GET_MTMODE) returning MT_NICE_FILTER to avoid unintended Prefetch() serialization.
  • Topology & input handling: Guarded DetectPCoreMask against Size == 0 and Processor Group 1+ cores (Group == 0), validated ParseAffinityMask via errno/endptr, treated mask="" as auto-detect, and added [strictPrime]b to SetProcessAffinity.

Build, Testing & Docs

  • 64-bit VS 2022+ focus: Removed Win32 and legacy toolset configs from AvsAffinity.vcxproj, switched to $(DefaultPlatformToolset), and fixed CMake ARM64 (/vmg /Zc:preprocessor) and resource compiler architecture defines.
  • Verification: Updated tests/Test-AvsAffinity.ps1 to require AviSynth.dll upfront (with -SkipRuntime for CI), parse PE export tables directly, and run an AviSynth+ P/Invoke frame test.
  • Artifacts: Prebuilt x64 and ARM64 binaries with SHA-256 checksums.