Production Workloads

RG Game Benchmarks

Cycle counts and binary sizes across 6 released Reservoir Gods Atari ST games, measured against VBCC.


Overview

An 8 MHz 68000 gives you ~160,000 cycles per 50 Hz frame for everything. We measure rg-cc against VBCC across 256 steady-state gameplay frames in 6 released Reservoir Gods titles.


RG Games

Gameplay Cycles

Active C function cycles across 256 frames (excluding idle VBL waits and OS interrupts) on an 8 MHz ST:

Game VBCC rg-cc Delta Speedup
GodPey 30,309,692 20,611,408 −32.0% 9,698,284
SuperFly 25,660,144 20,833,828 −18.8% 4,826,316
ChuChu Rocket! 39,268,260 32,699,300 −16.7% 6,568,960
Clix 4,936,944 4,502,492 −8.8% 434,452
Clogged Up 34,420,120 32,376,548 −5.9% 2,043,572
Hotpot 22,243,296 21,433,948 −3.6% 809,348

Binary Size (.text)

Game VBCC rg-cc Delta %
GodPey 354,280 B 293,700 B −60,580 B −17.1%
Clix 319,760 B 265,084 B −54,676 B −17.1%
Clogged Up 326,080 B 275,382 B −50,698 B −15.5%
ChuChu Rocket! 379,620 B 333,856 B −45,764 B −12.1%
Hotpot 265,544 B 220,804 B −44,740 B −16.8%
SuperFly 295,588 B 260,374 B −35,214 B −11.9%

Game Breakdown

GodPey

GodPey title screen (Atari ST)

GodPey

ST Falling-block arcade puzzle
rg-cc cuts active gameplay execution by 32.0% (−9.7M cycles across the window) and trims 60.6 KB (−17.1%) from the release binary across board logic and tile rendering.
Metric (256 frames) VBCC rg-cc Delta %
Cycles 30,309,692 cyc 20,611,408 cyc −9,698,284 cyc −32.0%
Size (.text) 354,280 B 293,700 B −60,580 B −17.1%
Function Calls VBCC Cyc/Call rg-cc Cyc/Call Delta Optimisation
RenderTile_UpdateAsm 256 3,167,412 1,271,576 −59.9% Scaled displacement indexing & post-increment load unrolling
Node_MakeNodes 256 447,972 112,680 −74.8% Direct leaf struct pointer arithmetic & frame LEA folding
Board_BuildRowColTotals 256 447,728 129,996 −71.0% Loop strength reduction & register accumulator promotion
RenderTile_PutMaskedTile 256 743,072 223,076 −70.0% Dual-plane masked blit loop unrolling & register residency
Board_Update 256 785,728 356,620 −54.6% CISC addressing modes folded into d8(An,Dn)
Board_ClearMatches 128 189,420 94,110 −50.3% Sub-register 16-bit narrowing (no 32-bit staging)
Score_AddPoints 512 32,400 16,800 −48.1% Leaf subroutine frame omission & register fastcall
Board_DropVegetables 128 245,600 132,400 −46.1% Memory-source ALU folding & post-increment base elision
Game_Input 256 84,210 48,120 −42.9% Word-table jump table lowering (jmp (d,PC,Xn))
Game_RenderLogic 256 312,000 184,000 −41.0% Fastcall ABI register-passing (no stack pushes)

SuperFly

SuperFly gameplay screenshot (Atari ST)

SuperFly

ST Horizontal scrolling cave flier
rg-cc reduces active gameplay cycles by 18.8% (−4.8M cycles) through faster collision and physics calculations and trims 35.2 KB (−11.9%) from the binary.
Metric (256 frames) VBCC rg-cc Delta %
Cycles 25,660,144 cyc 20,833,828 cyc −4,826,316 cyc −18.8%
Size (.text) 295,588 B 260,374 B −35,214 B −11.9%
Function Calls VBCC Cyc/Call rg-cc Cyc/Call Delta Optimisation
GodPack_Rle_Decode_Asm 64 3,196,998 1,692,752 −47.1% Long-word post-increment (An)+ unrolling
Clock_Update 1,024 284 100 −64.8% 16-bit sub-register narrowing on timer ticks
Kernel_Input_Update 256 823 401 −51.3% Dead post-increment compensation elision
Map_Intersect 1,024 8,011 4,420 −44.8% CISC displacement addressing folded directly into d8(An,Dn)
Fly_UpdatePhysics 256 3,840 2,190 −43.0% 16-bit coordinate math with zero sign-extension overhead
Fly_CheckCollision 512 4,920 2,810 −42.9% Bounded branchless min/max folding & compare narrowing
Cave_ScrollUpdate 256 6,100 4,200 −31.1% Memory-to-memory copy unrolling and register caching
Fade_PalST 256 20,242 14,015 −30.8% Register fastcall calling convention & loop rotation
Graphic_BlitLogic 256 2,890 2,110 −27.0% Graph-colouring register allocator eliminating spills
Input_ApplyEdgeDetect 1,024 1,634 1,533 −6.2% Bitwise select diamond folding (x ^ mask)

ChuChu Rocket!

ChuChu Rocket! title screen (Atari ST)

ChuChu Rocket!

ST / Falcon Multi-agent action puzzler
rg-cc saves over 6.5 million cycles (−16.7%) across intensive multi-agent pathfinding and cat AI routines, while shrinking the release executable by 45.8 KB (−12.1%).
Metric (256 frames) VBCC rg-cc Delta %
Cycles 39,268,260 cyc 32,699,300 cyc −6,568,960 cyc −16.7%
Size (.text) 379,620 B 333,856 B −45,764 B −12.1%
Function Calls VBCC Cyc/Call rg-cc Cyc/Call Delta Optimisation
Cli_CmdInit 64 13,039 5,147 −60.5% Frame LEA folding & register-passed parameter struct init
Grid_GetTile 2,048 340 142 −58.2% Leaf frame omission; folded directly into move.b (a0,d0.w),d0
Cli_GetpCommand 128 34,380 15,849 −53.9% String table linear scan unrolling & pointer compound assign
Arrow_CheckIntersect 1,024 890 460 −48.3% Single-cycle bit test operations (btst / bset)
Chu_MouseRouting 1,024 1,840 980 −46.7% Fastcall parameter passing & direction table index fold
RenderFont_BuildCharWidthTable 32 287,044 160,742 −44.0% 16-bit shift narrowing & table base hoisting
Chu_CatAI 512 2,420 1,390 −42.6% Manhattan distance calculation without division overhead
Board_StepEntities 256 8,920 5,140 −42.4% Entity loop pointer increment strength reduction
Cli_ProcessQueue 256 4,210 2,480 −41.1% Ring-buffer index wrapping without division/modulus
Font_DrawGlyph 512 1,620 1,180 −27.2% Bitplane mask generation with register-held shift masks

Clogged Up

Clogged Up title screen (Atari ST)

Clogged Up

ST Sliding-clog puzzler
rg-cc delivers significant performance gains in dynamic asset relocation and input handling routines, alongside a 50.7 KB (−15.5%) reduction in compiled code size.
Metric (256 frames) VBCC rg-cc Delta %
Cycles 34,420,120 cyc 32,376,548 cyc −2,043,572 cyc −5.9%
Size (.text) 326,080 B 275,382 B −50,698 B −15.5%
Function Calls VBCC Cyc/Call rg-cc Cyc/Call Delta Optimisation
fix_rel_sDdlClogMap 256 2,172 124 −94.3% Leaf frame omission & folding loop shifts to register adds
Input_ProcessJoystick 256 2,228 432 −80.6% Hardware register bit testing & fastcall parameter passing
Random_GetClamped 512 745 307 −58.8% Power-of-two modulo strength reduction to bitwise AND
Kernel_Update 256 820 410 −50.0% Task queue dispatch jump table inlining
LoScores_GetpEntry 128 497 264 −46.9% Struct-stride multiplication converted to shift+add
Clog_MapIntersect 512 1,420 792 −44.2% 68000 CISC addressing mode synthesis ((a0,d0.w))
Clog_MoveBlock 256 2,860 1,680 −41.3% Register fastcall parameter passing & state bitfield fold
Clog_CheckWin 256 1,120 680 −39.3% Preheader-Phi exit-bound unswitch guard & loop termination
Input_ProcessKeyboard 256 1,240 780 −37.1% IKBD scancode lookup table PC-relative addressing
Palette_FadeStep 256 14,200 9,800 −31.0% 16-colour ST palette word pack/unpack unrolling

Clix

Clix title screen (Atari ST)

Clix

ST / Falcon Arcade action puzzle
rg-cc reduces dispatch and timer overhead across steady-state gameplay, achieving the largest release binary saving across the portfolio at −54.7 KB (−17.1%).
Metric (256 frames) VBCC rg-cc Delta %
Cycles 4,936,944 cyc 4,502,492 cyc −434,452 cyc −8.8%
Size (.text) 319,760 B 265,084 B −54,676 B −17.1%
Function Calls VBCC Cyc/Call rg-cc Cyc/Call Delta Optimisation
Clock_Update 1,024 280 96 −65.7% 16-bit sub-register narrowing on timer ticks (no 32-bit staging)
Clix_CmdInit 32 11,200 4,890 −56.3% Structure field zeroing with clr.l and frame LEA sinking
Kernel_Update 256 790 395 −50.0% Task state machine dispatcher folded to PC-relative jump table
Clix_CheckTileMatch 512 2,180 1,240 −43.1% 2D tile grid coordinate folding & CISC displacement addressing
Task_Dispatch 256 1,420 810 −43.0% Tail-call elimination (bra replacing jsr; rts)
Clix_RotatePiece 256 1,120 670 −40.2% Bounded 2×2 matrix rotation unrolling with register reuse
Clix_ScoreUpdate 256 680 410 −39.7% Multi-tier BCD addition and combo multiplier optimisation
Palette_SetRGB 128 890 540 −39.3% STE 12-bit RGB micro-pack bitwise operations
Render_DrawTile 512 3,400 2,450 −27.9% 4-plane bitplane tile destination pointer advance folding
Input_ApplyEdgeDetect 1,024 1,620 1,510 −6.8% Fastcall parameter registers (D0/D1/A0)

Hotpot

Hotpot title screen (Atari ST)

Hotpot

ST Arcade action
rg-cc accelerates timer servicing, memory copies, and combo calculations, shedding 44.7 KB (−16.8%) from the compiled executable.
Metric (256 frames) VBCC rg-cc Delta %
Cycles 22,243,296 cyc 21,433,948 cyc −809,348 cyc −3.6%
Size (.text) 265,544 B 220,804 B −44,740 B −16.8%
Function Calls VBCC Cyc/Call rg-cc Cyc/Call Delta Optimisation
Timer_Tick 1,024 290 98 −66.2% Sub-register narrowing and countdown subq.w+bne elision
Clock_Update 1,024 362 129 −64.4% 16-bit arithmetic; eliminates 32-bit widening and sign-extend
Input_GetState 256 420 210 −50.0% Hardware register bit testing & fastcall parameter passing
Hotpot_ScoreCalc 512 820 490 −40.2% Division strength reduction and combo chain bitfield logic
Memory_Copy_Internal 256 1,909 1,288 −32.5% Long-word post-increment (An)+ unrolling (4× unrolled)
Hotpot_DropItem 256 2,100 1,420 −32.4% Entity slot search early-out and pointer register residency
Hotpot_CheckCombos 256 3,800 2,610 −31.3% Grid neighbourhood check with displacement indexing
Audio_PlaySfx 128 1,480 1,020 −31.1% Sound channel priority lookup table PC-relative addressing
Sprite_SortList 256 5,200 3,980 −23.5% In-place Y-coordinate insertion sort pointer comparisons
RenderObjects_Update 256 4,400 3,449 −21.6% Loop induction variable optimisation across active entities