new gitignore and roadmap

This commit is contained in:
Peterino 2026-11-11 23:59:04 -07:00 committed by Peterino2
parent 28b9cb4c40
commit db6c83ff1a
3 changed files with 24 additions and 6 deletions

3
engine/lib/slugger/.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
output.bin
zig-out/
.zig-cache/

View File

@ -1093,7 +1093,7 @@ test "testing" {
std.debug.print("drained {d} entries\n", .{drained}); std.debug.print("drained {d} entries\n", .{drained});
for (gLoggerSystem.mem.entries.items) |item| { for (gLoggerSystem.mem.entries.items) |item| {
try xxd.xxdWriteAscii(&writer.writer, item.serialized_args, .{}); try xxd.xxdWriteAscii(&writer.writer, item.serialized_args, .{ .color = false });
try writer.writer.print("\n", .{}); try writer.writer.print("\n", .{});
try item.render(&gLoggerSystem.mem, &writer.writer, .{}); try item.render(&gLoggerSystem.mem, &writer.writer, .{});
@ -1133,7 +1133,12 @@ test "testing" {
{ {
const io = std.testing.io; const io = std.testing.io;
const file = try std.Io.Dir.cwd().createFile(io, "output.bin", .{}); const cwd = std.Io.Dir.cwd();
try cwd.createDirPath(io, "zig-out/");
const tdir = try cwd.openDir(io, "zig-out", .{});
const file = try tdir.createFile(io, "output.bin", .{});
defer file.close(io); defer file.close(io);
var buffer: [4096]u8 = undefined; var buffer: [4096]u8 = undefined;
@ -1143,10 +1148,16 @@ test "testing" {
var compressedBuffer: [4096]u8 = undefined; var compressedBuffer: [4096]u8 = undefined;
var compressedWriter = try lz4.Lz4Writer.init(std.testing.allocator, w, .{ .buffer = &compressedBuffer }); var compressedWriter = try lz4.Lz4Writer.init(std.testing.allocator, w, .{ .buffer = &compressedBuffer });
defer compressedWriter.deinit(); defer compressedWriter.deinit();
std.debug.print("entry: {}", .{gLoggerSystem.mem.entries.items[0]});
for (0..12000) |_| {
try sluggerformat.write(std.testing.allocator, &gLoggerSystem.mem, &compressedWriter.writer); try sluggerformat.write(std.testing.allocator, &gLoggerSystem.mem, &compressedWriter.writer);
try compressedWriter.writer.flush();
try w.flush(); try w.flush();
} }
} }
}
pub const sluggerformat = @import("sluggerformat.zig"); pub const sluggerformat = @import("sluggerformat.zig");
const p2 = @import("p2"); const p2 = @import("p2");

View File

@ -1,16 +1,20 @@
# Road to Game 1 # Road to Game 1
Chapter 1: core tech Chapter 1: core tech
- Logging infrastructure - Logging infrastructure
- structured logging - done
- compression and streaming - done
- structured logging loading utilities -
- logging task (game thread)
- API generation - API generation
- Hot Reloading - Hot Reloading
- Command API
- IO and threadpool - IO and threadpool
- logging task
- Allocations and memory pooling - Allocations and memory pooling
- tracy and performance profiling - tracy and performance profiling
Chapter 2: graphics Chapter 2: graphics
- slang shader compiler - slang shader compiler