Commit Graph

175 Commits

Author SHA1 Message Date
Luke Street 67fbbf4acc Merge remote-tracking branch 'refs/remotes/origin/main' into unhackify-widescreen
# Conflicts:
#	src/m_Do/m_Do_main.cpp
2026-04-17 23:12:58 -06:00
Luke Street 7dba5738b6 Widescreen rework & IR scaling 2026-04-17 23:11:43 -06:00
Irastris ea18075de8 Frame Interp: Game Clock Refactor & Ring Item Selection 2026-04-17 23:24:47 -04:00
Irastris 3f6cad3eb4 Frame Interp: UI Pacing Simplification 2026-04-17 23:24:47 -04:00
Luke Street 03b95503b9 Merge pull request #408 from TwilitRealm/ci-2
macOS CI, iOS file picker, icons, safe area avoidance

Resolves #382
2026-04-17 00:00:34 -06:00
Luke Street 2e7e4fbb10 iOS file picker, ImGui drag scroll & more 2026-04-16 23:26:27 -06:00
Irastris 24d66452dd Frame interp: Cap the accumulator 2026-04-16 23:29:13 -04:00
Irastris d5566fd463 Gyro: ROLLGOAL! 2026-04-16 05:17:50 -04:00
Irastris 83a95d64ee Frame interp: Revised camera system
FOV is now smooth, and the individual hacks for stars and Epona's reins are removed
2026-04-16 00:04:32 -04:00
Irastris d97fbb778b Frame interp: Dreamworks' Turbo (2013) 2026-04-14 21:59:24 -04:00
Luke Street 08105650c5 Create log files under configDir/logs; seed initial pipeline cache 2026-04-14 01:32:58 -06:00
Luke Street c6d58afd94 Integrate Sentry crash reporting for public builds 2026-04-14 00:43:56 -06:00
Irastris 235949e452 Frame interp: Initial presentation sync implementation 2026-04-14 02:41:11 -04:00
Irastris 701986389d Frame interp: Initial presentation sync implementation 2026-04-14 02:33:44 -04:00
Luke Street e2e81c2e72 Hide Win32 console by default, show with --console/DUSK_CONSOLE=1 2026-04-13 20:25:44 -06:00
Irastris cbf24ebd38 Initial implementation of gyro aim 2026-04-12 14:58:16 -04:00
Luke Street 943ac05f16 Use Limiter class in waitForTick (#330)
This uses the existing `Limiter` class (stolen from Metaforce) in `JFWDisplay::waitForTick`.
The limiter also now uses `SDL_DelayPrecise` internally on non-Windows platforms.
On Windows, the existing `NanoSleep` logic is untouched, as it appears to provide a
more stable framerate for the folks testing it on Windows than `SDL_DelayPrecise` does.
On Linux, however, `SDL_DelayPrecise` is plenty accurate.
2026-04-11 17:50:52 -06:00
Irastris eaec6487a3 Implement unlocked framerates via interpolation (#315)
* Disable waitForTick and waitBlanking

* Initial frame interpolation implementation

* Initial batch of speed fixes

* Fix Iron Boots

* Strip dead code once used for debugging

* Interpolate shadows

* Revert overzealous/redundant lookups

* Fix JUTFader

* Fix field map cursor

* Fix various particle effects

* Fix Midna when riding Wolf Link

* Fix title logo

* Title Logo 2: Electric Boogaloo

* Fixed grass and flowers

* "Unlock Framerate" config option (WIP)

* Wrap more things in TARGET_PC

* Finish wrapping things in TARGET_PC

* Missed one

* Disable dComIfGd_drawXluListInvisible when interpolating

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-04-11 01:06:25 -06:00
Irastris 4ab64e8813 Add Aurora config options for enabling texture replacement and dumping (#222) 2026-04-10 19:14:15 -06:00
Luke Street b0e84b78e1 Avoid re-initializing game_main 2026-04-10 16:46:25 -06:00
Luke Street 1875c7c224 --dvd param skips prelaunch 2026-04-10 16:46:24 -06:00
Luke Street 95191036f3 Big imgui overhaul 2026-04-09 23:11:10 -06:00
CraftyBoss ed7fa8f2c5 implement pre-launch ui for configuring iso directory (#301)
UI will automatically open on boot and will not launch the game if there is no valid iso path specified in the config. Can optionally be disabled on future game launches.
2026-04-09 23:06:37 -06:00
Pieter-Jan Briers 4328a1bb5d Set default PAD mapping to fix Z (#297)
* Set default PAD mapping to fix Z

Requires https://github.com/encounter/aurora/pull/111

* Update to new API
2026-04-09 19:24:25 -06:00
qwertyquerty 229c8ed88f CI/CD, CMake improvements, more targets, fix gcc (#258)
* CI attempt

* syntax

* fix cmake for linux

* fix include directories and merge main

* fix PDB fighting

* fix gcc compiling

* fix SSCACHE for windows

* try and fix gcc

* more CI presets

* remove the android target for now

* bump cmake minimum to fix debug information format

* yet another attempt at fixing gcc

* yet another attempt at fixing gcc

* better CI matrixing

* yet another attempt at fixing GCC

* fix arm

* fix CI

* placeholder icons

* compile dawn from source for windows arm64

* fix icons and linker warnings

* fix cmake

* fetch libjpegturbo

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-04-09 19:22:53 -06:00
PJB3005 a2d008ab09 Add Tracy stuff 2026-04-09 18:47:34 +02:00
madeline 7b4d9ce807 frame usage debug info 2026-04-07 22:11:50 -07:00
MelonSpeedruns 3456496ff3 Merge remote-tracking branch 'origin/main' into 26-04-05-locked-aspect-ratio
# Conflicts:
#	include/dusk/settings.h
#	src/dusk/settings.cpp
#	src/m_Do/m_Do_main.cpp
2026-04-07 18:20:45 -04:00
PJB3005 393bf7b77a Fix Aurora draw call display in performance overlay
It was getting reset at the start of the frame... Just cache the values.
2026-04-07 22:17:48 +02:00
PJB3005 208f2aba9f Cleanly shut down JKRDecomp thread
Properly join the thread to ensure it's shut down before we try to exit.

Fixes #268
2026-04-07 20:06:52 +02:00
Luke Street 462001d398 Add vsync toggle & honor fullscreen setting 2026-04-06 23:07:48 -06:00
MelonSpeedruns 96ab109b97 Merge remote-tracking branch 'origin/main' into feature/dynamic-aspect-ratio 2026-04-06 13:16:38 -04:00
Max Roncace f2be41355c Reapply settings changes on top of #209 2026-04-05 23:49:31 +02:00
bdamja d2ce53d5d4 button to restore default window size and position (#234) 2026-04-05 17:04:40 -04:00
PJB3005 8edcfb2052 Add "lock aspect ratio" setting
Uses new Aurora functionality: https://github.com/encounter/aurora/pull/97

Fixes #138
2026-04-05 22:46:38 +02:00
PJB3005 3f652f17d5 appname.hpp -> app_info.hpp 2026-04-05 19:20:10 +02:00
PJB3005 0b04ef6463 Set Aurora config path 2026-04-05 19:03:26 +02:00
PJB3005 4235a5fddc Merge remote-tracking branch 'origin/main' into 26-04-04-config 2026-04-05 00:12:17 +02:00
PJB3005 a00fb1c05c Config system v1
Roughly inspired by what I've learned from my work on Space Station 14, without some of the unnecessary cruft and complexity.

Implementation is relatively simple once I figured out all the template order shenanigans.
2026-04-04 22:47:48 +02:00
Irastris 6966f33a8b Remove AuroraConfig configPath 2026-04-04 01:52:48 -04:00
Luke Street 1e2e40c52a Rescale imgui on display scale change 2026-04-03 17:09:29 -06:00
Luke Street 4216165dfb Copy more imgui stuff from Metaforce 2026-04-03 17:04:22 -06:00
Luke Street 2e920d510d Allow threads to gracefully shutdown 2026-04-01 18:30:12 -06:00
PJB3005 248f3945b4 Merge branch 'main' into pjb-audio 2026-03-27 17:18:11 +01:00
PJB3005 e2923d3745 Fix shutdown crash 2026-03-26 15:03:48 +01:00
madeline ed27528728 turn on background input 2026-03-23 23:17:26 -07:00
Max Roncace cfc3a5f483 Move aurora_begin_frame/aurora_end_frame calls to main loop
This fixes an issue when using SDL's X11 backend due to Dusk
attempting to render ImGui menus without an active frame.
2026-03-18 16:33:03 -04:00
Max Roncace 9bed8b863f Fix some Clang compile warnings 2026-03-14 18:37:18 -04:00
qwertyquerty 6be51c09c5 Ongoing gameplay dev (#49)
* launch.json cwd

* bodge to load gci for testing

* stub card stat

* gameplay bodges

* viewport, ub fixes

* add release with debug info cmake variant

* be fixes, sound stub

* viewport h

* d_msg_flow BE

* be fopAcM_createItemFromEnemyID

* update launch configuration to use iso

* more audio stubs

* Attempt to set viewport and get messages for brightness check

* skip opening scene again, fixed JMessage::TResourceContainer::TCResource::Do_destroy

* add guards for viewport changes

* moar endian swapping to get Link sitting in PROC_OPENING_SCENE and for dialogues

* BE d_msg_class i_data

* stub bgm start

* fix div by 0 error (for now)

* TEMP_BROKEN in d_menu_ring

* REQUIRES_GX_LINES

* properly stub renderingAmap::draw with REQUIRES_GX_LINES

* better stubbing outside of stubs

* fix event data getting swapped multiple times

* evil draw vp fix

* Stub log imgui

This redirects all spammy logs to an imgui window that is cleared per frame.

This fixes the serious performance dip of the logging, and makes the regular log readable.

* Oops move those optimization changes I accidentally committed behind a flag

DUSK_SELECTED_OPT

* gx_line macro in map

* fix audio stubbing

* switch to CARD API aurora impl

* remove kabufuda from link libs

* refactor imgui stuff and add input viewer

* merge stub log with refactor

* accidentally committed a metaforce header shh

* basic map loader

* ImGuiConsole: Add missing <thread> include

* you may now play as luigi (you may now load stages with bridges)

* bloom fix

* bloom leak fix

* cloud shadow fix

* add soft reset button to imgui menu

* if it broke dont not fix it

* i swear i committed this

* BE swap indMtx in JPAResource::setPTev

* wnark ct fix

* frsqrte implementation from kinoko

* Fix Clang compile error in JAISeq::prepare_getSeqData_

* Add endian conversions to dMsgFlow_c::getInitNodeIndex

This fixes a freeze when Fado tries to stop you from leaving the
starting area.

* Add RAII GXTexObj wrapper; fix almost all leaks

* Update aurora for indirect texturing

* Update aurora for CARD fix

* Fix Clang build

* More d_msg_flow endian fixes

Fixes softlock when trying to talk to Fado and possibly other NPCs.

* no frame limiter

* get pause menu working

* proper frame limiting

* particle pointer size fix

* improve map loader a bit

---------

Co-authored-by: Jasper St. Pierre <jstpierre@mecheye.net>
Co-authored-by: TakaRikka <takarikka@outlook.com>
Co-authored-by: CraftyBoss <talibabdulmaalik@gmail.com>
Co-authored-by: Luke Street <luke@street.dev>
Co-authored-by: Lurs <l_werdes@gmx.de>
Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
Co-authored-by: tgsm <doodrabbit@hotmail.com>
Co-authored-by: Max Roncace <me@caseif.net>
Co-authored-by: Phillip Stephens <antidote.crk@gmail.com>
2026-03-12 04:01:03 -07:00
Pieter-Jan Briers cb9dd972fd Pjb dev 3 (#48)
* Undo array allocation changes from #43

Doesn't work

* Expand dmeter heap sizes, give names

* Fix manual operator delete call in resource.cpp

* Disable map rendering for now

Aurora can't handle lines

* Re-enable assert heap on DVD thread

Should be fine?

* Some basic debug groups with the new Aurora API

* Allow Aurora backend to be set via CLI

* Give materials debug groups

* More debug groups

* JKRHeap separation: array edition

Pain
2026-03-11 13:40:21 -07:00