Skip to content

Releases

DuskOnVita 0.9.1

Choose a tag to compare

@NathanKneT NathanKneT released this 28 Nov 02:15

DuskOnVita 0.9.1

A fix update to 0.9.0: the grey areas some players got after playing for a while are fixed.
DuskOnVita is an unofficial, open-source port of The Legend of Zelda: Twilight Princess (GameCube)
to the PS Vita, built on Dusklight. No game data is included: you need your own dump of the
GameCube disc.
Not affiliated with or endorsed by Nintendo, Sony, the Dusklight team or the
zeldaret project.

Fixes

  • Grey areas after playing for a while. After many area changes in one session, the areas you
    entered next could lose their walls and floors and show plain grey, with Link and the HUD still
    drawn, until the game was restarted (a player's report on 0.9.0: past Faron Woods, then the
    twilight castle's sewers and tower). The cause, found on a PS Vita 1000: the port leaked kernel
    semaphores, hundreds at every area change, through the tables behind the game's mutexes,
    conditions and message queues, which kept an entry for every heap and file that ever existed.
    Around the 24th area change the process could make no more kernel objects, the shader compiler
    (libshacccg.suprx) failed with an internal error, and every new shader failed after it. Now an
    entry is released when the heap or file that held it goes, and the log writes the tables' size at
    every area change. On the console the tables stayed level from one area change to the next,
    and on the route that used to break at the 24th area change, 41 area changes and 290 new
    shaders went by with no compiler failure.
  • If the shader compiler still fails on a shader, that shader is not compiled again in the session
    (what needs it stays undrawn until a restart), and the compiler is no longer reloaded after such a
    failure.
  • GPU texture memory after many area changes. The 32 MiB of texture memory kept up to 14 MiB
    of textures nothing drew any more (frame-buffer copies this port never writes, and earlier areas'
    textures). Now those copies take no memory, textures nothing draws any more are let go after an
    area change, and a texture that finds no room is made again as soon as there is room. On the
    console, 41 area changes with the texture memory cut to 12 MiB gave no failure.
  • The log (ux0:data/twilight-vita/runtime.jsonl) writes the texture memory and the size of those
    tables at every area change, and what the shader compiler did; if you still see grey surfaces,
    that file says why.

Speed

The same as 0.9.0. On the console, over a 15-minute route with an empty shader cache, frame times
and shader compile times matched a 0.9.0 build's on the same route (0.52 s against 0.50 s for each
new shader). The table in the 0.9.0 release notes still holds.

Known issues

Unchanged from 0.9.0, except the grey areas:

  • The first visit to an area stalls while its shaders compile, about 0.5 s for each new one. They
    are cached: later visits don't stall. No prepared shader set ships with the release.
  • In the enemy areas of Hyrule Field about a quarter of the sound buffers are produced late. No
    crackle was heard in testing, but it can happen there.
  • The minimap in play is not drawn (the map screens are; the minimap is planned for 0.10); neither
    are Link's real-time shadow, water effects, bloom, depth of field and heat haze.
  • Ordon village's widest views stay slow (10 to 12.5 FPS).
  • Some textures flicker.
  • Not supported: mods, texture packs and the randomizer; RVZ, WIA, WBFS and NKit disc images
    (convert them to ISO); remapping buttons beyond the confirm button.
  • Not tested: the story past Ordon and a full playthrough, sleep and resume, the USA and Japanese
    discs. Save before you put the Vita to sleep.

Coming next

The roadmap has the list and
where each item stands.

Install

Install DuskOnVita.vpk over 0.9.0 with VitaShell, or update it from VitaDB Downloader: your
saves and settings stay. A first install: the steps are in the
README.

Files

  • DuskOnVita.vpk, SHA-256 dadc0a8cf7e4227ff850a217501568cdf889f6a73ba232a2c61f1cca26cad96b
  • Built from this tag (commit 3b61763) with tools/vita_perf_build.sh build-release -DTWV_APP_NAME=DuskOnVita -DTWV_VERSION=00.91 in the VitaSDK image pinned in
    tools/vita_build.sh.
  • The VPK carries LICENSE, NOTICE and the license texts. vitaGL, vitaShaRK and SceShaccCgExt
    are LGPL: this repository at this tag is the source of everything else in the program and its
    build recipe, so it can be rebuilt and relinked.

DuskOnVita 0.9.0

Choose a tag to compare

@NathanKneT NathanKneT released this 14 Nov 14:07

DuskOnVita 0.9.0

The first version with a VPK to install. DuskOnVita is an unofficial, open-source port of The
Legend of Zelda: Twilight Princess (GameCube) to the PS Vita, built on Dusklight. No game data
is included: you need your own dump of the GameCube disc.
Not affiliated with or endorsed by
Nintendo, Sony, the Dusklight team or the zeldaret project.

What it does

  • Boots from your disc image (ISO, CISO or GCZ) to the title screen; a new game starts, the
    opening in Ordon plays, saving works (with three rolling backups). Saves are ordinary .gci
    files, the format Dolphin and Dusklight on a PC use.
  • A renderer written for the Vita (GXM), 16:9, drawn at 75 % and scaled to the screen.
  • The map screens draw their map: the dungeon map with its rooms and doors, the field map with its
    terrain and zoom.
  • PlayStation button prompts drawn in code; the HUD shows Square left of Cross and Circle right,
    as the buttons sit on the Vita; Cross/Circle follow your console's Enter button.
  • Touch in menus, gyro aim, an optional free camera.
  • An in-game settings page (rear touch pad, or three fingers on the screen), in sections: presets,
    render size, speed-ups, FPS counter, prompts, HUD button positions, confirm button, language,
    gyro, camera.
  • Comfort options, Dusklight's own and all off by default, so the default is the game as it was
    made: auto-save, instant text, quick transform (R + Triangle), faster climbing, iron boots and
    Tears of Light, the HD version's bigger wallets, an aiming reticle, HUD size, and more. Also a
    Challenge section (double damage, no heart drops) and a few cheats.
  • Text in your Vita's language when your disc has it.

Speed, measured on a PS Vita 1000 (the original runs at 30 FPS)

The heavy places, measured on 13 Nov at normal game speed:

Place FPS Game speed
Snowpeak Ruins, room 9 19 100 %
Kakariko 18 to 19 100 %
Ordon village 14 standing, 16 walking 94 to 98 %
Hyrule Field, the enemy areas 14.5 82 %
Palace of Twilight, entrance 14 90 %
Ordon village, its widest view 10 66 %

That session ran this release's default speed settings (the "Speed-ups" setting on Original) on a
build made just before its settings page and HUD work, and with a prepared shader set, which the
release does not ship.

With "Speed-ups" on Performance (it skips work you can't see), in free play on 14 Nov on the build
this release is made from:

Place FPS
Ordon village, most of it 30
Ordon village, its centre 22.6 to 24.4
Ordon village, its widest view 11.7
Forest Temple, first room 17.5 to 26.2
Snowpeak Ruins, room 9 23.7 to 25.2

Lighter places, measured on 10 and 11 Nov, before the last speed-ups, and not measured again:
open Hyrule Field 29, around Link's house 29, Castle Town 25 to 27, a fight in Faron Woods about
14.5.

The game keeps its normal speed down to 15 FPS; below that, everything slows down with it, as the
table's last column shows. The villages' widest views are the next thing being worked on.

A tip, not measured yet: the game already asks for the highest clocks an application can set
(444 MHz for the CPU). A kernel plugin that overclocks the CPU to 500 MHz, such as PSVshell, can
help in the heavy places.

Known issues

  • The first visit to an area stalls while its shaders compile, about 0.4 s for each new one (a
    first visit to four areas of Hyrule Field compiled 32 of them, 14 s in all; the Forest Temple's
    first room compiled 15, the slowest 0.97 s). They are cached: later visits don't stall. No
    prepared shader set ships with the release.
  • In the enemy areas of Hyrule Field about a quarter of the sound buffers are produced late. No
    crackle was heard in testing, but it can happen there.
  • The minimap in play is not drawn (the map screens are); neither are Link's real-time shadow,
    water effects, bloom, depth of field and heat haze.
  • Ordon village's widest views stay slow (10 to 12.5 FPS).
  • Some textures flicker.
  • Not supported: mods, texture packs and the randomizer; RVZ, WIA, WBFS and NKit disc images
    (convert them to ISO); remapping buttons beyond the confirm button.
  • Not tested: the story past Ordon and a full playthrough, sleep and resume, the USA and Japanese
    discs. Every room of the game loads in the emulator, and two dungeon rooms were visited on the
    console, but nobody has played the dungeons. Save before you put the Vita to sleep.

Coming next

Faster villages, the minimap, then shadows and bloom; real system trophies built on
Dusklight's achievements; controls you can change. The
roadmap has the list and
where each item stands.

Install

The steps are in the README: the VPK, the
shader compiler libshacccg.suprx from your own console, and your disc image in
ux0:data/twilight-vita/.

Files

  • DuskOnVita.vpk, SHA-256 14c67742bf1e34bdc10026b8f9cef6a78fe02a875f1bdff5a806af5ccf8ed6b3
  • Built from this tag with tools/vita_perf_build.sh build-release -DTWV_APP_NAME=DuskOnVita -DTWV_VERSION=00.90 in the VitaSDK image pinned in tools/vita_build.sh.
  • The VPK carries LICENSE, NOTICE and the license texts. vitaGL, vitaShaRK and SceShaccCgExt
    are LGPL: this repository at this tag is the source of everything else in the program and its
    build recipe, so it can be rebuilt and relinked.