Commit Graph
18 Commits
Author SHA1 Message Date
shweet 03bbb93ba6 Replace glm with vec.h
Vec2, IVec2, Vec3, Vec4, IVec4 and a column-major Mat4, with glm's formulas, in one header.
Free functions are vec_ and mat4_ prefixed. The leaked using namespace glm is gone.
Render goldens still match.
2026-11-22 18:15:02 -05:00
shweet 7e81ea4259 Play sounds with SDL audio and stb_vorbis instead of SDL_mixer
Sounds decode once to 48 kHz stereo floats. Each play is a stream on one shared device, opened on the first play.
A render's audio is mixed offline at 48 kHz, so command line renders get their sounds too.
The About music is Ogg Vorbis now. Opus, libopus and libogg are gone.
2026-11-22 17:34:01 -05:00
shweet a515267e26 Build: libraries optimized, resources compiled from files, stb and doctest as submodules
CMAKE_BUILD_TYPE is now set before the libraries are added, so SDL, SDL_mixer and lunasvg build optimized.
Release on Linux is -O2 with unused sections dropped and the binary stripped.
SDL builds only what the editor uses. simdjson builds without exceptions and with two parsers.
Fonts, icons, the About music and friends live under resources/ and compile in through one generated C file.
The string tables are shared between files instead of copied into each.
nanosvg and imconfig.h were unused and are gone.
2026-11-22 17:07:36 -05:00
shweetandClaude Opus 5.5 201a7c7cfc Replace tinyxml2 with pugixml
Parsing a 60 MB save drops from about 350 ms to 30 ms (a whole load from about
620 ms to 200). The reader keeps tinyxml2's rules for numbers and booleans
("%d"/"%f" on the leading text; a number or true/false), so every golden is
unchanged, and parse errors now give a line. SVG composing (pack and merge)
builds, clones and prints through pugixml. Tests check escaping by reading a
save back instead of comparing against tinyxml2's printer, and cut
SourceDocument from saves as text. pugixml is a submodule at v1.16; the About
window lists it, and simdjson, instead of tinyxml2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:57:39 -04:00
shweetandClaude Opus 5.5 b69b0eaa1b JSON documents; remove the extended format
Documents can be saved as the editor's own JSON (Save as JSON, in Configure's
Serialization row, off by default) and any .anm2 starting with '{' opens as
one. The schema is new, not an XML mirror: content items in arrays (an item's
index is its id), animations keyed by unique name (a repeat saves as "Name 2"),
groups nested, paired values as arrays, a frame on a region storing only the
region, ISO 8601 dates, every default left out, and one line per frame and
content item, with anything else that fits in 100 columns on one line. Unknown
XML isn't kept. Each part is described once (frame_io, track_io, model_io...)
and run by a JsonWriter or a JsonReader; simdjson parses (new submodule). A
JSON file that opens but has unknown keys, wrong types, unknown values or bad
indices lists them by location in a warning toast; libraries toast their load
problems too. With Save as JSON on, saving always shows the Isaac warning.

The extended format is gone: no setting, File menu toggle, ExtendedVersion or
isExtendedFormat. XML saves are always the game's copy with SourceDocument;
old extended files still open. Document saves take Options instead of loose
bools, and model_load reads through model_load_string. docs/json_format.md
replaces docs/extended_format.md; goldens lose ExtendedVersion and the
.extended variants.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:48:25 -04:00
shweet 0ce567c282 nvm fuck libxm, fuck msvc, fuck bill gates and fuck (You) 2025-11-11 22:01:30 -05:00
shweet 24465f29c5 uuuuuuuuuuuuuggggggggggggggggghhhhhhhhhhhhhhhhhh 2025-11-11 20:28:31 -05:00
shweet 2ce46b4de4 libxm back to module 2025-11-11 20:22:10 -05:00
shweet 48d873230b Help -> About...almoooooooooost......... 2025-11-10 23:59:18 -05:00
shweet 99b7d9f49d FFmpeg and sound support; refactor, etc. 2025-11-01 00:54:22 -04:00
shweet 5b0f9a39c4 Refactor... 2025-10-21 20:23:27 -04:00
shweet 7f07eaa128 slowly getting back...also, static linking 2025-09-21 23:57:17 -04:00
shweet 8039df667c submodules please 2025-09-19 22:42:08 -04:00
shweet 62c5dcf6ea fix git modules 2025-09-19 22:19:48 -04:00
shweet 30880c003d The Omega Refactor(TM) + Input Options 2025-06-30 21:29:59 -04:00
shweet 6d488fce1e visuals and a lot of other things 2025-06-26 08:48:42 -04:00
shweet 91190987ed basics 2025-06-19 05:29:06 -04:00
shweet 91d01a1441 first commit 2025-06-15 22:03:02 -04:00