Repository navigation
Releases
v1.0.0
PlayGroundFromAbove (PGFA) v1.0.0 for Windows
Sliding note window (replaces Visual Buffer Notes)
- New renderer path for very dense MIDIs: every key keeps a persistent list of its notes, and each frame only the notes that actually own a screen row are drawn. Roughly 8 - 11x faster on dense frames
- Turns itself on for frames with 150k or more event rows in view and falls back to the regular path for tick mode, the corruptor, bent notes and warp
- Fun menu checkbox "Sliding note window (fast dense MIDIs)";
PGFA_SLIDING=0|1|2overrides it - Visual Buffer Notes is retired: old configs that had it on use the new path, the old code is dormant
- Dense frames also build their notes on several threads, and the occlusion filter runs in parallel
Synth output: SuperVirtualMIDISynth
SVMSAPI.dllnext to the exe is used for KDMAPI output (native session with exact-timestamp batching where the DLL supports it)- New "KDMAPI Synth" dropdown in Settings > Audio: SuperVirtualMIDISynth or OmniMIDI (default SuperVirtualMIDISynth, falls back to the other if it is missing). Takes effect on restart, saved as
KDMAPISynthin the config - Free play, the splash MIDI, normal playback and the startup check all use the chosen provider; OmniMIDI is no longer force-loaded at startup
SVMS.dllis no longer tried as a provider (it is a BASS shim without a KDMAPI API)- Every song now starts from a freshly reset synth (all controllers, programs, volume, pan, reverb, bend range), so nothing carries over from the previous song
Start screen
- Close File now goes back to the full splash screen (it used to show an empty placeholder state)
- The playback toolbar is hidden on the splash screen
- With the Horizontal renderer, the splash no longer draws the horizontal strip over its own notes (DualRoll had the same problem)
- The ribbon bloom glow now shows along the bottom edge of the splash screen, where its notes land
Free play
- Much lighter at high note rates: heavy at 50k NPS before, now fine up to around 600k NPS
- Release info is kept in a flat array instead of a hash map, the colour table is no longer rescanned every frame, expired notes are removed in one pass per key, and the per-key note building and scroll-off run on several threads
- Each of the 16 channels of a colour track is its own colour slot, so about 1M notes can be on screen with their own colours instead of 65,536. Slots are reused oldest first, which keeps the colour upload small
- Event rows of notes that scrolled off are recycled, so memory no longer grows for as long as you play (a per-note list that was never read or cleared is gone too)
- Audio timing: the free play scheduler mixed raw QPC ticks with microseconds, which made every scheduled note fire the moment it was queued. Timing is now in real microseconds
- The repeater (SLAM and held keys with a repeat rate) is fired by the audio thread on its own clock, so a lagging frame only delays the visuals and the notes you hear stay on time. The Audio FPS readout stays high while it runs
- Notes are sent to the audio thread in one batch per frame (one lock and one wake) instead of one per event
UI
- Redesigned playback toolbar: drawn transport icons, Vol / Speed / Notes sliders that carry their own labels (double-click resets to 100%), a seek bar that scales with the window, and a time readout
- "Bounce window to the beat" (with a hop height setting) hops the OS window on the beat, next to the existing stats bounce
- The stats Time line no longer runs past the song length after a lag spike (it could show 2:50.7 / 2:50.1)
- Library entries saved by older builds with mangled non-ASCII characters in their names are repaired when they are loaded
Prerender audio
- The prerender synth and audio device are created in the background while the MIDI parses, instead of freezing the first frame
- Seeking inside audio that is already rendered only moves the read position, with no restart or rebuild
- Resuming from pause keeps playing the audio that was already generated, and rebuilds only if the clock moved
- The song clock is held until prerender audio is actually playing, so the first notes no longer vanish and reappear
- Fixed the audio ring being reallocated while the generator thread was writing into it
Stability and diagnostics
- New shutdown watchdog: if closing hangs for 10 seconds, a "PGFA is not closing" dialog shows the last step reached and the stack of every thread, writes
shutdown_hang_log.txt, and offers to terminate - Teardown is logged step by step
- The shared text conversion buffers are thread-local (they were shared between threads)
- Per-frame cost breakdown with
PGFA_FRAME_BREAKDOWN=1, and a measurement-only note-train statistic withPGFA_NOTE_RUN_STATS=1(both off by default) - Further fixed random crashes/lockups during MIDI parsing
For developers
- New headless benchmark:
PGFA-v1.0.0-AVX2.exe -bench <script.ini>loads one MIDI with default settings (your config is untouched, no audio), steps a fixed clock, writes frame-time percentiles and per-phase times, and can dump frames and compare them pixel by pixel against a baseline. Scripts and scenarios are inbench/(seebench/README.md)
v1.0.0B3
⚠️ BETA Release - You WILL experience crashes or random bugs.
Public standalone BETA release of PGFA - v1.0.0 for Windows
Fixes
Fixed certain crashing when loading .xz compressed MIDIs
Changes
Pitch bend visualization now bends the notes
Packed builds are currently extremely broken, as such I will not include them here for now. If you want to test them, take a look at v1.0.0B instead.
v1.0.0B2
⚠️ BETA Release - You WILL experience crashes or random bugs.
Public standalone BETA release of PGFA - v1.0.0 for Windows
Fixes
- Synths (OmniMIDI, SVMS and other KDMAPI providers) are no longer unloaded once loaded
- New always-on
startup_log.txtnext to the exe, covering launch up to the first MIDI loading and playing - The crash dialog is now a short summary; the full report stays in
crash_log.txt - The crash dialog's buttons are now "Quit" and "Try to continue". "Try to continue" actually continues: a crash in the player goes back to the start screen, and a crash on another thread stops only that thread
- Fixed the "Transition" keys mode stuttering on dense MIDIs with the visual (image) buffer on: every frame of the 88 -> 128 key animation threw away the prepared note data and restarted preparing the whole song in the background
- Fixed notes being cut off diagonally in DirectX 11 with the visual buffer on
Packed builds are currently extremely broken, as such I will not include them here for now. If you want to test them, take a look at v1.0.0B instead.
v1.0.0B
⚠️ BETA Release - You WILL experience crashes or random bugs.
Public standalone BETA release of PGFA - v1.0.0 for Windows
Two builds are provided for each CPU level: the normal build, and a Packed build that packs big MIDIs by default (see below).
What's new since v0.9.0:
MIDI loading
- Much faster MIDI parser (parallel two-pass track parsing and a k-way merge for post-processing)
- Fixed loading hanging at the end of parsing, or failing outright after loading another MIDI
- Big files are memory-mapped instead of copied into RAM (up to about 8.8 GB less at peak on huge files)
- Much lower memory use while loading: smaller event rows, 16-bit note-off offsets, merge instead of sort
- Identical notes (same track, channel, key, velocity, start and end) are stored once and repeated by the player
- Row times are computed from ticks when a file has only a few tempo changes, instead of being stored
Packed mode (experimental)
- The whole song is kept in a compact packed form (about 0.1 - 1.2 bytes per note, e.g. a 3.3 GB / 433M-note MIDI packs to 42 MB)
- Only a window of the song around the playhead is expanded for the renderer and audio, and the window slides along as you play or seek
- Enable with
PGFA_PACKED=1; the Packed builds turn it on by default for MIDIs of 100 MB or more (PGFA_PACKED=0turns it off,PGFA_PACKED_MIN_MBchanges the threshold) PGFA_PACKED_NOTESsets how many notes a window holds (default 12,000,000)
UI
- Redesigned start screen recent-files card with a blurred background
- Small text is crisper at lower window sizes (768p)
- Captions now appear just above the piano keyboard instead of covering the toolbar
Fixes
- Fixed keys staying stuck after polyphony bombs
- Fixed a GPU hang (the whole PC freezing for a few seconds, then nothing drawing) when switching between fullscreen and windowed on some NVIDIA RTX cards
- Fixed DirectX 12 recovery after a driver reset: no more falling back to DirectX 11 or failing with "Error calling DirectX"
- Fixed a crash in the recovery path when it ran twice in a row
- Fixed a crash when the GPU upload buffer could not be mapped while loading a very large MIDI
- Fixed stale blur and bloom texture states after a resize or fullscreen switch
- Device-removed reasons and the GPU operation that hung are now written to the log
- Hardened key drawing against invalid per-key note indices (suspected cause of a rare crash during playback)
Known issues:
- Packed mode: the picture freezes for about 0.3 - 0.4 s each time the window moves to the next section, and the audio probably has a short gap there
- Packed mode: markers, lyrics, track names and controller state from before a window are not carried over, and some statistics (notes played, etc.) restart per window
- Visual buffer mode in DirectX11 corrupts each visual chunk
- An access violation error may show up when closing the MIDI player
- Visual buffers are significantly slower in packed releases
v0.9.0
⚠️ BETA Release - You WILL experience crashes or random bugs.
Public standalone BETA release of PGFA - v0.9.0 for Windows
As of now:
- IMGUI GUI
- Bloom and blur support with controls
- Free Play mode
- 3 render modes, with ability to change certain render functions
- Fun tab including ability to reduce vbo scale, add artifical lag, etc
- Render to video support
- Prerendered audio support
- DirectX11, software rendering support
- Faster MIDI loading, slightly more memory efficient
- And more..
Known issues:
- Visual buffer mode in DirectX11 corrupts each visual chunk