Side project · Active · 2026
DuskOnVita
An unofficial PS Vita port of Twilight Princess that runs the game’s decompiled code natively on the console, without emulation.
- Hyrule Field bridge on the console, 5 to 11 Nov
- 18.3 → 29.1 FPS
- Source: Hyrule Field bridge on the console, 5 to 11 Nov
- static-geometry hits compared with the original in verify mode, 0 mismatches
- 337,408
- Source: static-geometry hits compared with the original in verify mode, 0 mismatches
- dated console runs in the public log, 2 rejected ones included
- 52
- Source: dated console runs in the public log, 2 rejected ones included

C++ · GXM · VitaSDK · CMake · Docker · Python
Problem
Could the PS Vita run Twilight Princess natively, at the original 30 FPS, with the game behaving exactly as it was made?
I wrote the Vita side with AI assistance. That covers the GX-to-GXM renderer, audio, input, memory, the settings page and the measurement tools.
Constraints
- The game speaks GameCubeEvery GPU command is translated to the Vita’s GXM API while the game runs. An app gets 3 ARM Cortex-A9 cores, at up to 444 MHz.
- The game must stay exactA speed-up that is on by default gives the same result bit for bit. Anything that changes the simulation is an opt-in setting.
- No game data in the downloadPlayers bring their own disc. The button prompts and the LiveArea pictures are drawn in code.
Critical point 1 of 3
One frame took 154 ms. The game needs 33.
On 22 October the port ran Link’s house at 6.3 FPS, with everything on one core. Preparing vertices alone cost 66 ms, 43% of the frame. I moved the GameCube command decoding to a second core and stopped re-checking geometry the game had not changed.
| Part | ms | Share |
|---|---|---|
| Game simulation | 12 | 8% |
| J3D draw building | 20 | 13% |
| GX command decode | 31 | 20% |
| Vertex preparation | 66 | 43% |
| vitaGL calls | 25 | 16% |
| Total | 154 | 100% |
- 33 ms budget · 30 FPS
- 66 ms · under 15 FPS the game itself slows down
Critical point 2 of 3
Same output, checked 337,408 times.
A speed-up is on by default only if it gives the same result as the original code. Each one has a verify mode that runs both and counts differences. Static geometry passed 337,408 comparisons with 0 mismatches.
Same frames, same input
337,408comparisons, static geometry
0mismatches
Critical point 3 of 3
Every console run is in the log.
I measure speed only on a real PS Vita 1000 and log each run with what changed. The log holds 52 runs. Two were faster and I rejected them because they dropped draws. Ordon village still runs at 9.9 FPS in its widest view.
- one console run, any place
- the Hyrule Field bridge
- Link’s house, 22 → 23 Oct: 6.34 → 20.24 FPS, several changes
- struck through: rejected, draws were lost
| Date | Run | FPS | Note |
|---|---|---|---|
| 22 Oct 2026 | v53r2 · Link’s house | 8.59 | |
| 22 Oct 2026 | v53r2 · Ordon, outside Link’s house | 7.20 | |
| 22 Oct 2026 | v54 · Link’s house | 8.19 | Rejected: draws were lost (uniform failures) |
| 22 Oct 2026 | v54 · Ordon, outside Link’s house | 9.65 | Rejected: draws were lost (uniform failures) |
| 22 Oct 2026 | v61 · Link’s house | 6.34 | |
| 22 Oct 2026 | v61 · Ordon, outside Link’s house | 7.39 | |
| 23 Oct 2026 | g2c-vgl · Link’s house | 20.24 | |
| 23 Oct 2026 | g2c-vgl · Ordon, outside Link’s house | 22.94 | |
| 23 Oct 2026 | g2c-vgl · Faron fight | 11.71 | |
| 23 Oct 2026 | g2c-gxm · Link ’s house | 19.45 | |
| 23 Oct 2026 | g2c-gxm · Ordon, outside Link’s house | 27.23 | |
| 23 Oct 2026 | g2c-gxm · Faron fight | 14.04 | |
| 28 Oct 2026 | b1 · Ordon, outside Link’s house | 27.92 | |
| 28 Oct 2026 | b1 · Ordon village centre | 11.81 | |
| 28 Oct 2026 | b1 · Castle Town, twilight | 16.73 | |
| 28 Oct 2026 | b1 · Kakariko, twilight | 12.84 | |
| 28 Oct 2026 | b1 · Hyrule Field bridge | 19.56 | |
| 28 Oct 2026 | b1 · Faron fight | 11.59 | |
| 28 Oct 2026 | b2 · Ordon, outside Link’s house | 27.44 | |
| 28 Oct 2026 | b2 · Ordon village centre | 12.35 | |
| 28 Oct 2026 | b2 · Castle Town, twilight | 19.80 | |
| 28 Oct 2026 | b2 · Kakariko, twilight | 12.60 | |
| 28 Oct 2026 | b2 · Hyrule Field bridge | 18.90 | |
| 28 Oct 2026 | b2 · Faron fight | 11.50 | |
| 5 Nov 2026 | b3 · Ordon, outside Link’s house | 27.57 | |
| 5 Nov 2026 | b3 · Ordon village centre | 12.30 | |
| 5 Nov 2026 | b3 · Castle Town, twilight | 19.26 | |
| 5 Nov 2026 | b3 · Kakariko, twilight | 12.72 | |
| 5 Nov 2026 | b3 · Hyrule Field bridge | 19.55 | |
| 5 Nov 2026 | b3 · Faron fight | 11.74 | |
| 10 Nov 2026 | p1-control · Ordon village centre | 12.29 | |
| 10 Nov 2026 | p1-gx · Ordon village centre | 13.05 | |
| 10 Nov 2026 | p1 · Ordon village centre | 13.87 | |
| 10 Nov 2026 | p1-perf · Ordon village centre | 15.60 | |
| 10 Nov 2026 | p1 · Hyrule Field bridge | 28.15 | |
| 10 Nov 2026 | p1 · Kakariko, twilight | 14.72 | |
| 10 Nov 2026 | p4 · Ordon village centre | 14.35 | |
| 10 Nov 2026 | p4 · Ordon, outside Link’s house | 28.83 | |
| 10 Nov 2026 | p4 · Kakariko, twilight | 15.49 | |
| 10 Nov 2026 | p4 · Faron fight | 14.53 | |
| 11 Nov 2026 | p5 · Kakariko, twilight | 16.53 | |
| 11 Nov 2026 | p5 · Castle Town, twilight | 25.77 | |
| 11 Nov 2026 | p5 · Hyrule Field bridge | 29.14 | |
| 11 Nov 2026 | p5 · Ordon, outside Link’s house | 28.81 | |
| 11 Nov 2026 | p5 · Faron fight | 14.63 | |
| 12 Nov 2026 | p8 · Ordon village, its widest view | 8.72 | |
| 13 Nov 2026 | p12 · Ordon village centre | 15.59 | |
| 13 Nov 2026 | p12 · Kakariko, twilight | 18.61 | |
| 13 Nov 2026 | p12 · Ordon village, its widest view | 9.87 | |
| 13 Nov 2026 | p12 · Palace of Twilight, entrance | 13.72 | |
| 13 Nov 2026 | p12 · Snowpeak Ruins, room 9 | 19.26 | |
| 13 Nov 2026 | p12 · Hyrule Field, the enemy areas | 14.48 | |
| 30 FPS, the original game | |||
| under 15 FPS the game itself slows down | |||
| Link’s house, 22 → 23 Oct: 6.34 → 20.24 FPS, several changes | |||
Result
On the Hyrule Field bridge, 18.3 FPS became 29.1.
The same six places, measured on 5 November and again on 10 and 11 November. Version 0.9.0 boots from the player’s own disc image, plays the opening in Ordon and saves on a real PS Vita 1000.
| Place | before (FPS) | after (FPS) | Note |
|---|---|---|---|
| Hyrule Field bridge | 18.3 | 29.1 | |
| Castle Town, twilight | 21.1 | 27.0 | |
| Ordon, outside Link’s house | 28.5 | 29.5 | |
| Kakariko, twilight | 12.2 | 14.9 | |
| Faron fight | 11.7 | 14.6 | run averages |
| Ordon village centre | 11.9 | 13.6 | to 10 Nov |
| 30 FPS, the original game | |||