Here's a statistical breakdown of the source code for Revs. Click on the table headers to sort by that statistic. For more information, see the notes after the table.
Category | Instructions | Subroutines | Variables | Data (bytes) |
---|---|---|---|---|
3D objects | 671 (7.1%) | 19 (4.5%) | 18 (2.1%) | 359 (1.7%) |
Car geometry | 457 (4.8%) | 20 (4.7%) | 15 (1.8%) | 54 (0.3%) |
Dashboard | 406 (4.3%) | 12 (2.8%) | 26 (3.1%) | 437 (2.0%) |
Drawing objects | 677 (7.1%) | 16 (3.8%) | 1 (0.1%) | 1 (0.0%) |
Drawing pixels | 23 (0.2%) | 1 (0.2%) | 9 (1.1%) | 110 (0.5%) |
Drawing the track | 820 (8.6%) | 22 (5.2%) | 9 (1.1%) | 116 (0.5%) |
Drivers | 398 (4.2%) | 16 (3.8%) | 14 (1.7%) | 110 (0.5%) |
Driving model | 822 (8.6%) | 32 (7.6%) | 47 (5.5%) | 54 (0.3%) |
Extra tracks | 1600 (16.8%) | 124 (29.4%) | 195 (23.0%) | 6465 (29.9%) |
Keyboard | 421 (4.4%) | 18 (4.3%) | 6 (0.7%) | 49 (0.2%) |
Main Loop | 89 (0.9%) | 2 (0.5%) | 0 (0.0%) | 0 (0.0%) |
Main loop | 305 (3.2%) | 14 (3.3%) | 1 (0.1%) | 1 (0.0%) |
Maths (Arithmetic) | 250 (2.6%) | 12 (2.8%) | 1 (0.1%) | 128 (0.6%) |
Maths (Geometry) | 185 (1.9%) | 14 (3.3%) | 1 (0.1%) | 256 (1.2%) |
Screen buffer | 632 (6.6%) | 20 (4.7%) | 53 (6.2%) | 5822 (27.0%) |
Screen mode | 179 (1.9%) | 5 (1.2%) | 10 (1.2%) | 62 (0.3%) |
Setup | 111 (1.2%) | 6 (1.4%) | 7 (0.8%) | 82 (0.4%) |
Sound | 100 (1.1%) | 6 (1.4%) | 4 (0.5%) | 78 (0.4%) |
Tactics | 304 (3.2%) | 7 (1.7%) | 1 (0.1%) | 32 (0.1%) |
Text | 407 (4.3%) | 25 (5.9%) | 73 (8.6%) | 1267 (5.9%) |
Track data | 3 (0.0%) | 1 (0.2%) | 48 (5.7%) | 3777 (17.5%) |
Track geometry | 651 (6.8%) | 30 (7.1%) | 19 (2.2%) | 309 (1.4%) |
Workspaces | 0 (0.0%) | 0 (0.0%) | 290 (34.2%) | 2030 (9.4%) |
Totals | 9511 | 422 | 848 | 21599 |
Some notes on the above:
- The instruction count does not include EQUB, EQUW, EQUD, EQUS or SKIP operatives; these are counted as data.
- Each part of a multi-part subroutine counts as an individual subroutine.
- The statistics are produced by a relatively simple static analysis of the source code. They are not 100% accurate, though they are pretty close.
- The totals cover all code in the main game, including all of the track data files.