diff --git a/TODO.txt b/TODO.txt index edf21d5..852b408 100644 --- a/TODO.txt +++ b/TODO.txt @@ -20,7 +20,6 @@ Audio system Randomize pitch a little? Playdate version - Regenerate texture At this point, pay someone to make the sound effect or something Audio toggle in system menu Launcher card @@ -46,6 +45,16 @@ Resurrections WebGPU Why is it brighter than the regl version? + Create a project that tests them side-by-side + That's right, two canvases, one regl and one webgpu + program them both to do the same basic ops in a floating point texture + display that texture + Retrieve the texture from the GPU and spit it out + Possible causes of difference + Color space + Floating point math + Texture interpolation + Blur implementation Try https://github.com/brendan-duncan/wgsl_reflect Get rid of end pass once it's possible to copy a bgra8unorm to a canvas texture Switch to rgba32float somehow? diff --git a/playdate/matrix_c/Source/images/matrix-glyphs.png b/playdate/matrix_c/Source/images/matrix-glyphs.png index 99abdf8..e7a8ebf 100644 Binary files a/playdate/matrix_c/Source/images/matrix-glyphs.png and b/playdate/matrix_c/Source/images/matrix-glyphs.png differ diff --git a/playdate/matrix_c/main.c b/playdate/matrix_c/main.c index dc1f070..a047e09 100644 --- a/playdate/matrix_c/main.c +++ b/playdate/matrix_c/main.c @@ -30,7 +30,7 @@ static int numColumns; static int numRows; static int numCells; -static const int numStandardGlyphs = 133; +static const int numStandardGlyphs = 135; static const int numPDGlyphs = 10; static const int numTotalGlyphs = numStandardGlyphs + numPDGlyphs; static const int numFades = 32; @@ -141,7 +141,7 @@ static int update(void* ud) if (speed < minSpeed) { speed = minSpeed; } - delta = sys->getElapsedTime() * speed + sys->getCrankChange() * 2 / 360; + delta = sys->getElapsedTime() * speed + sys->getCrankChange() * 5 / 360; } sys->resetElapsedTime(); time += delta; diff --git a/playdate/matrix_lua/Source/images/matrix-glyphs.png b/playdate/matrix_lua/Source/images/matrix-glyphs.png index 99abdf8..e7a8ebf 100644 Binary files a/playdate/matrix_lua/Source/images/matrix-glyphs.png and b/playdate/matrix_lua/Source/images/matrix-glyphs.png differ diff --git a/playdate/matrix_lua/Source/main.lua b/playdate/matrix_lua/Source/main.lua index e3d4153..3b37fed 100644 --- a/playdate/matrix_lua/Source/main.lua +++ b/playdate/matrix_lua/Source/main.lua @@ -17,7 +17,7 @@ local numColumns = floor(screenWidth / glyphWidth) local numRows = floor(screenHeight / glyphWidth) local numCells = numColumns * numRows -local numStandardGlyphs = 133 +local numStandardGlyphs = 135 local numPDGlyphs = 10 local numTotalGlyphs = numStandardGlyphs + numPDGlyphs local numFades = 32 @@ -115,7 +115,7 @@ function playdate.update() mustDraw = true end - cell.glyphCycle = cell.glyphCycle + delta * 2 + cell.glyphCycle = cell.glyphCycle + delta * 5 if cell.glyphCycle > 1 then cell.glyphCycle = cell.glyphCycle % 1 local lastGlyphIndex = cell.glyphIndex