Frame rate and feel
SOCOM II runs its whole game 29.97 times a second: firing, movement, the stick and every timer step on that clock, which is why the game feels the way it does, and what a browser changes.
SOCOM II does not run at 60 frames a second. The whole game, menus included, takes one step every two television fields: 29.97 times a second, or one step every 0.0334 s. Each step reads the controller once, moves everything once, and runs every timer down once. Nothing happens between steps.
That is where much of the game's feel comes from. A weapon can fire at most one round a game frame, and the wait between rounds is rounded up to whole frames. A stick push is not seen until the next frame. A jump is 22 frames long. The numbers players learned by hand are counts of these frames.
The numbers
The clock
| Length of one game frame | 0.03336723 | s | Measured |
| The same, as the game works it out | 525 / 15734 | s | Measured |
| Game frames a second | 29.9695 | frames | Measured |
| Television fields in one frame | 2 | fields | Measured |
| The game's own frame cap | 30 | frames a second | Measured |
| How often the network is read, on its own thread | 50 | ms | Read from the game |
What steps once a frame
| Controller read | 1 read | Every 33.4 ms | Measured |
| Movement stick ramp | 1/6 of full push | Full push in 6 frames, 5 a second | Measured |
| Rounds fired, at most | 1 round | - | Read from the game |
| M4A1 automatic fire | 1 round every 3 frames | 0.1001 s between rounds | Measured |
| Turn speed ramp to full | Full on the 13th frame | 0.43 s | Read from the game |
| A jump | 22 frames in the air | Top 11.485 units above the floor | Read from the game |
| Camera easing back out | 3 % of the gap | - | Read from the game |
| Throw power rising while the button is held | 3 x frame length of the gap | 0.1001 of the gap each frame, from the third held frame on | Read, not yet double-checked |
| Held frames that add no throw power at the start of a hold | 2 frames | 67 ms | Read, not yet double-checked |
| Throw power falling | 1.5 x frame length of the gap | - | Read, not yet double-checked |
| Wait between one throw and winding up the next, button held | 2 frames | 67 ms | Measured |
| "Muzzle blocked" mark fading out | 4 frames | 133 ms | Read, not yet double-checked |
| Grenade and launched-round flight | 1 step | - | Read from the game |
The two held frames that add no throw power are seen on recordings of the online patch that are not yet scored. One of the two is read in the disc's code; both are read in the online patch's code, not yet double-checked. See Grenades.
The stick, seen on the original
- A read once every 33.37 ms predicts
- Runs that saw the centre, on the original (online patch)
The numbers
| Series | Time the stick spent at centre (ms) | Runs in which the game saw the centre (%) |
|---|---|---|
| A read once every 33.37 ms predicts | 0 | 0 |
| A read once every 33.37 ms predicts | 33.37 | 100 |
| A read once every 33.37 ms predicts | 150 | 100 |
| Runs that saw the centre, on the original (online patch) | 0 | 0 |
| Runs that saw the centre, on the original (online patch) | 10 | 15 |
| Runs that saw the centre, on the original (online patch) | 20 | 60 |
| Runs that saw the centre, on the original (online patch) | 27 | 80 |
| Runs that saw the centre, on the original (online patch) | 33 | 90 |
| Runs that saw the centre, on the original (online patch) | 50 | 100 |
| Runs that saw the centre, on the original (online patch) | 80 | 100 |
| Runs that saw the centre, on the original (online patch) | 150 | 100 |
- One sixth of full push a frame
- Stick value seen on the original (online patch)
The numbers
| Series | Time after the first step (ms) | Share of full push the game uses (%) |
|---|---|---|
| One sixth of full push a frame | 0 | 16.7 |
| One sixth of full push a frame | 33.37 | 33.3 |
| One sixth of full push a frame | 66.73 | 50 |
| One sixth of full push a frame | 100.1 | 66.7 |
| One sixth of full push a frame | 133.47 | 83.3 |
| One sixth of full push a frame | 166.84 | 100 |
| One sixth of full push a frame | 200 | 100 |
| Stick value seen on the original (online patch) | 0 | 16.7 |
| Stick value seen on the original (online patch) | 35 | 33.4 |
| Stick value seen on the original (online patch) | 65 | 50 |
| Stick value seen on the original (online patch) | 101 | 66.7 |
| Stick value seen on the original (online patch) | 134 | 83.4 |
| Stick value seen on the original (online patch) | 167 | 100 |
| Stick value seen on the original (online patch) | 0 | 16.7 |
| Stick value seen on the original (online patch) | 34 | 33.4 |
| Stick value seen on the original (online patch) | 66 | 50 |
| Stick value seen on the original (online patch) | 100 | 66.7 |
| Stick value seen on the original (online patch) | 133 | 83.4 |
| Stick value seen on the original (online patch) | 166 | 100 |
| Stick value seen on the original (online patch) | 0 | 16.7 |
| Stick value seen on the original (online patch) | 34 | 33.4 |
| Stick value seen on the original (online patch) | 67 | 50 |
| Stick value seen on the original (online patch) | 108 | 66.7 |
| Stick value seen on the original (online patch) | 145 | 83.4 |
| Stick value seen on the original (online patch) | 171 | 100 |
| Stick value seen on the original (online patch) | 0 | 16.7 |
| Stick value seen on the original (online patch) | 35 | 33.4 |
| Stick value seen on the original (online patch) | 67 | 50 |
| Stick value seen on the original (online patch) | 101 | 66.7 |
| Stick value seen on the original (online patch) | 135 | 83.4 |
| Stick value seen on the original (online patch) | 169 | 100 |
| Stick value seen on the original (online patch) | 0 | 16.7 |
| Stick value seen on the original (online patch) | 34 | 33.4 |
| Stick value seen on the original (online patch) | 67 | 50 |
| Stick value seen on the original (online patch) | 102 | 66.7 |
| Stick value seen on the original (online patch) | 135 | 83.4 |
| Stick value seen on the original (online patch) | 177 | 100 |
| Stick value seen on the original (online patch) | 0 | 16.7 |
| Stick value seen on the original (online patch) | 34 | 33.4 |
| Stick value seen on the original (online patch) | 67 | 50 |
| Stick value seen on the original (online patch) | 100 | 66.7 |
| Stick value seen on the original (online patch) | 134 | 83.4 |
| Stick value seen on the original (online patch) | 167 | 100 |
The menus
| Menu fade to black | 15 | 0.5 s | Read from the game |
| Held direction starts to repeat | 12 | 0.4 s | Read from the game |
| Longest step the menus' animations take | - | 0.05 s | Read from the game |
How it works
- The frame ends on the television's beat. When a frame's work is done the game waits for the next field of the picture. Two fields make a frame. The game measures how long the frame took by counting the television's scan lines: 525 of them in two fields, at 15734 a second.
- One step a frame, with the measured time. The game steps once and hands that measured time to everything: movement, timers, animation. There is no smaller step inside it.
- The controller is read once. A stick movement or a press that begins and ends between two reads is never seen. In a capture of the original, a stick flicked through centre in 10 ms was seen passing centre only 3 times in 20; at 20 ms, 12 times in 20; at 50 ms and longer, every time.
- Timers run down and stop at zero. A weapon's fire timer is set when a round leaves, loses one frame's time each frame, and is held at zero with nothing carried over. So the gap between rounds is the weapon's wait rounded up to whole frames. The M4A1's automatic wait of 0.096 s becomes 3 frames, 0.1001 s. See Fire rate.
- Speeds are per second; steps are per frame. Run speed and animation speed are scaled by the frame's time, so they do not depend on the frame. But anything the game adds "once a frame", such as the stick ramp, the turn ramp or the reticle's growth, moves in small stairs 29.97 times a second.
- Paths are the sum of their steps. A jump and a grenade's flight are worked out one frame at a time. The height of a jump and the spot a grenade lands on are the result of those exact steps.
- The network is separate. Incoming network traffic is read on its own thread every 50 ms, not on the frame.
When the original is under load
If a frame's work takes longer than one field, the frame ends a field late: three fields, 0.05 s. The game does not skip anything and does not catch up. It takes one longer step:
- Timers still lose the real time, so a timed wait stays the same length. Read, not yet double-checked
- Anything that counts frames slows down: one round a frame at most, one controller read, one movie picture. Read from the game
- In the menus, an animation step is never longer than 0.05 s, so below 20 frames a second menu animations run slow. Read from the game
How often the original overran in a busy 16-player round has not been measured.
What this means when you play
- Fire rates are whole frames. Two weapons whose listed waits round up to the same number of frames fire at the same real rate.
- A very fast tap or flick can be missed. Anything shorter than about 33 ms may fall between two reads.
- The stick has a short ramp. From rest it takes 6 frames, a fifth of a second, to reach full push; a turn takes 0.43 s to reach full speed.
- Jumps and throws are repeatable. The same input gives the same arc, frame for frame, which is why learned jump spots and grenade spots work every time.
- Nothing in the original moves between frames. It shows every frame it steps, on a screen that shows 29.97 a second.
In Legacy
Legacy uses the same game frame, and steps jumps, falls, grenades and launched rounds on it exactly. Everything else runs at your screen's rate with the same amount of change a second, and the controller is read every drawn frame. A browser also has to guard against a page that stops for a while.
What a stutter does, in short: a page frame longer than 0.1 s is treated as 0.1 s, which is two or three game frames. Movement and weapon timers lose the rest, so the game runs slow for that moment instead of jumping ahead. A hitch makes rounds come later, never closer together. Timed holds, such as the hold to pick up a weapon, are the exception: they count the real time.
What we do not know yet
- How the original behaves under heavy load in a round. The one-long-step rule is read from the code for the menus and carried to the match by reading, not by tracing or measuring. A capture of the original in a full room with the frame time recorded would settle it. Not known yet
- Whether the menu ever runs frames of one field. The wait at a frame's end sits on a knife edge between 262 and 263 scan lines; if it tips, frames alternate two fields and one. Counting fields over a scripted menu wait on the original settles it. Not known yet
- The stick's snap thresholds. A stick pushed past a threshold and moving fast jumps to its value instead of ramping. The thresholds are read from the code; the capture used a digital stick and could not separate them.
- A small fixed delay in the controller read would explain two rows of the capture running low. It is open.
Sources
- The frame's length, the cap, the two fields, the network thread: research note 208, "The game frame"
(
208-the-game-frame.md): measured in memory dumps of the original running on an emulator, and read fromFUN_001e7040andFUN_003aff30. The menu's clock: research note 110, "The front-end frame clock" (110-the-frame-clock.md), including what a late frame does. - The controller read and the stick ramp: research note 208, section 10: a capture of the online patch running on
an emulator, the stick reversed with a timed gap at centre, over 100 runs. The ramp's code is
FUN_00586c10. The two stick graphs are that capture, the stick-reversal record of the online patch: its shares by pause length, scored by an independent count of the recording (a count made outside the project's own test tools), and six of its reversals read value by value. - The fire timer and the M4A1's spacing: research note 84, "Accuracy and recoil"
(
84-accuracy-and-recoil.md), section 6:FUN_005c0fd0andFUN_005c0ae0; the 0.1001 s spacing measured on a rifle-range capture of the online patch. - The jump, the turn ramp, the camera, the per-frame table: research note 208, sections 3 and 9. The jump's
steps are
FUN_0059b440; the turn rampFUN_002da930. - Throw power, the re-arm, the muzzle mark: research note 437, "Five per-frame rules held to the game frame at any
page rate" (
437-frame-rate-rules-1027.md):FUN_00594cf0,FUN_00215250. That note cites a grenade capture of the original for the two-frame re-arm (one grenade type) and for the first step of the throw power; the rule itself has had one reader. - Timed holds and the long frame in Legacy: research note 252, "Timed holds in real time"
(
252-timed-holds-in-real-time.md), and Legacy's frame loop (frameTime.ts,matchMount.ts,mover.ts,uiClock.ts,gameFrame.ts). The owner's ruling on what runs on the game frame is in the project's record of rulings.
What the online patch changed
Every known difference between the SOCOM II disc (r0001) and its last online patch (r0004): weapon values, sound radius, jumping, map collision, mines, hostages, votes, voice and ranking.
How sure we are
The three labels on every page of the manual, where the facts come from, and what the Legacy parity statuses mean.