Commit Graph

202 Commits

Author SHA1 Message Date
Henrik Rydgård
d57edfbdac Rename FramebufferCommon.cpp/h to FramebufferManagerCommon.cpp/h for consistency 2020-08-03 23:17:22 +02:00
Unknown W. Brackets
4ef63843d2 Display: Allow unthrottle to skip only flipping.
Before, it either flipped continuously, or forced frameskip on.  This
makes it so you can still draw frames, but skip actual flips.

This is useful when games draw things only in a single frame and reuse
later.  It's also useful when measuring speed improvements if you already
get 100% speed on a device.
2020-07-19 13:57:04 +02:00
Unknown W. Brackets
86c0418f14 Headless: Fix flash0/font path.
This was causing some automated tests to fail incorrectly, after the
assets/flash0/ change.
2020-05-23 10:40:32 -07:00
Henrik Rydgård
f77b78d429 Oops, need to pass an (invalid) slot number in headless too. 2020-05-16 18:38:30 +02:00
Unknown W. Brackets
580c74c3e7 Audio: Remove latency setting.
This setting only changes some internal values that are shown in tests not
to match PSP behavior.  Removed, it now matches how the PSP works.

This setting wasn't really affecting any actual audio latency.
See #11844.
2020-04-08 00:08:19 -07:00
Unknown W. Brackets
41dfe05de2 Headless: Fix compile on Android. 2020-04-05 15:23:13 -07:00
Unknown W. Brackets
6b453c4708 Net: Better simulate sceWlanGetEtherAddr timing.
Also, interestingly, this does not fail if the wifi switch is off.
2020-03-15 11:37:12 -07:00
Unknown W. Brackets
dfb10f197e Net: Handle memory allocation better. 2020-03-15 11:37:12 -07:00
Unknown W. Brackets
efceb031ce UI: Make System_InputBox API asynchronous.
Doing this as a precursor to cleaning up the Android madness.
2020-03-08 18:59:17 -07:00
李通洲
55bb58e13e
NativeApp: add System_GetPropertyFloat all the places 2020-02-04 09:20:34 +08:00
Unknown W. Brackets
5b5ded058c Windows: Support long My Documents paths. 2020-01-04 10:57:23 -08:00
Unknown W. Brackets
5871ab0538 UI: Stop caching the draw context in coreParam.
This is possibly getting outdated in some paths of graphics reinit, and
then causing crashes.  Let's just always get it from the graphicsContext.
2019-09-28 21:58:15 -07:00
Unknown W. Brackets
7d2b332b2d Audio: Improve error messages for sample counts. 2019-06-30 16:39:14 -07:00
Henrik Rydgård
fe77b836c7 Spacing fix 2019-05-11 06:41:55 +02:00
Henrik Rydgård
2f26297062 Clean up some more ifdefs 2019-05-10 23:25:57 +02:00
Henrik Rydgard
56bc7b1d52 Remove outdated TrueColor setting. 2018-12-14 16:13:44 +01:00
Unknown W. Brackets
703181607e GPU: Apply color test after doubling. 2018-09-09 20:09:48 -07:00
Henrik Rydgård
4cfc6ee272
Merge pull request #11187 from unknownbrackets/alt-speed
Add second alternate speed and buttons for alt speed
2018-06-24 13:41:12 +02:00
Unknown W. Brackets
e2c217ab29 Core: More consistently use config enums. 2018-06-23 10:59:18 -07:00
Unknown W. Brackets
b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets
0d4bd341e9 Windows: Separate Pause and Break actions.
It was confusing that "Pause" made PPSSPP appear to hang.

This has the side effect of making "Break on Load" work outside Windows.
2018-06-23 10:14:36 -07:00
Unknown W. Brackets
03edd6129a GLES: Cut down on use of USING_GLES2. 2018-06-17 20:51:34 -07:00
Unknown W. Brackets
16e0a7cc8e Headless: Default memory stick inserted.
Tests expect this, oops.
2018-06-06 05:54:39 -07:00
Henrik Rydgård
36fd2711d6 Revert "Remove further remains of hardware skinning."
This reverts commit 40db61a680.
2018-04-10 12:22:41 +02:00
Henrik Rydgård
40db61a680 Remove further remains of hardware skinning. Fixes #10661 2018-03-05 00:03:47 +01:00
Unknown W. Brackets
496b2bff35 Vulkan: Fix fragment depth rounding.
Was slightly off in the accurate depth path.
2017-12-26 16:19:11 -08:00
Henrik Rydgård
023c3736c6 Disable anisotropic filtering in headless, screws up mipmap test 2017-11-15 18:14:04 +01:00
Henrik Rydgård
830645e7c5 Fix headless to work better in vulkan mode 2017-11-15 15:35:15 +01:00
Unknown W. Brackets
9080f41642 Headless: Prevent segfaults with Vulkan. 2017-11-14 22:34:18 -08:00
Henrik Rydgård
d618b3673b Count readbacks in a frame and show in GPU debug stats. 2017-11-08 11:57:53 +01:00
Unknown W. Brackets
5a3d229d04 Headless: Add support for SDL. 2017-09-20 07:24:58 -07:00
Henrik Rydgård
1b05a54800 Remove the Mipmap setting. One step forward for #8171 2017-05-26 10:21:20 +02:00
Unknown W. Brackets
3b4103cb3b System: Use a separate API for bool props.
This simplifies defaulting, instead of -1 being "true".
2017-04-29 17:35:12 -07:00
Unknown W. Brackets
90f3ae14e0 Windows: Simplify host shutdown.
The whole nativeHost/oldHost thing is unnecessary.

This also fixes gl lost holder mismatches.
2017-04-29 12:04:54 -07:00
Unknown W. Brackets
b2711c2ebf Headless: Enable mipmaps. 2017-04-22 18:17:48 -07:00
Unknown W. Brackets
19a3e166ec Headless: Fix DirectX11 support on Windows. 2017-04-22 18:17:03 -07:00
Unknown W. Brackets
930d6c0558 Headless: Fix graphics tests.
The draw context wasn't being passed through, so it was segfaulting.
2017-04-20 21:10:59 -07:00
Henrik Rydgard
cf365bb257 Minor cleanup with GOLD define - only use it in System_GetPropertyInt 2017-04-05 16:21:08 +02:00
Henrik Rydgard
8d1ece05ca Finally move flash0 into assets, fixing #9468 and #9520
CMake fix
Fix the innosetup and zip scripts for the new assets location
2017-04-01 00:20:53 +02:00
Henrik Rydgard
4f707a1022 Simplify logging code some more. Cleaner log output on Android. 2017-03-18 10:47:36 +01:00
Henrik Rydgard
1ccca2ef33 We don't really support different listeners per log type, so let's get rid of that fiction. 2017-03-17 17:57:32 +01:00
Unknown W. Brackets
9e390510df Remove legacy InputState. 2017-03-14 22:07:07 -07:00
Henrik Rydgard
b9b3a022fb Switch another enum to enum class 2017-03-02 12:36:54 +01:00
Florent Castelli
70593d1004 android: Change preprocessor define to standard __ANDROID__
ANDROID is only standard to the old Makefile buildsystem, not the platform.
2016-10-12 11:14:09 +02:00
Florent Castelli
4145b60a0e symbian: Remove! 2016-10-11 18:49:08 +02:00
Florent Castelli
373db56a16 blackberry: Remove! 2016-10-11 17:40:32 +02:00
Unknown W. Brackets
afdd01571c Uncouple savestates from NativeApp some.
Still have osm.
2016-05-27 20:41:37 -07:00
Unknown W. Brackets
2353cf6e85 Delete no longer needed linkage hacks. 2016-05-27 20:25:10 -07:00
Unknown W. Brackets
95d912c378 Get rid of the input_state global linkage. 2016-05-27 20:24:01 -07:00
Unknown W. Brackets
a5560c657e Headless: Use --ir instead of -ir.
Other multi-letter options are prefixed too, let's be consistent.
2016-05-14 19:23:52 -07:00
Henrik Rydgard
ce8aae5ed1 Make the IRJit core selectable in developer tools 2016-05-08 01:43:27 +02:00
Henrik Rydgard
e611915a52 Rename some GPU classes and enums to fix some consistency issues between the backends. 2016-04-10 10:21:48 +02:00
Unknown W. Brackets
d909b0395b Make tests use high quality splines. 2016-04-09 21:10:41 -07:00
Unknown W. Brackets
add506a0d3 Cleanup differences in aniso handling.
Some places were not handling it as a power of two.
2016-03-20 19:31:02 +01:00
Unknown W. Brackets
c770349475 Switch headless to using graphics contexts.
Vulkan doesn't work yet, needs some thin3d for the command buffer?
2016-03-20 19:31:02 +01:00
Henrik Rydgard
c64064024d Initial vulkan code.
This was squashed from nine commits but using old versions of Vulkan.
2016-03-20 19:18:35 +01:00
Unknown W. Brackets
6c38b22467 Fix crashes when running games, tests, etc.
Need the graphicsContext value to stick around.
2016-01-03 11:05:36 -08:00
Henrik Rydgard
3398288bd0 Some cleanup around input_state 2016-01-01 14:40:18 +01:00
Henrik Rydgard
15de6e6b98 GraphicsContext: Abstract away things like swapbuffers etc before adding even more backends.
Needed to prevent clutter all over the codebase.

Does not go all the way yet, goal would be a common render loop between platforms but not there yet.
2016-01-01 14:40:16 +01:00
Henrik Rydgard
732b1239e7 Add some permission infrastructure, add an ugly button that asks you to grant STORAGE permission if necessary. 2015-12-17 22:41:50 +01:00
Henrik Rydgard
44be9f2a50 Move Windows GPU init code into Windows/GPU 2015-11-03 23:22:09 +01:00
Henrik Rydgard
bfed830f91 Remove the ability to disable rounding mode support. It's time. 2015-10-08 14:54:42 +02:00
Henrik Rydgard
08735b806f Remove silly use of gstate.SetVSyncInterval 2015-09-06 13:36:33 +02:00
Unknown W. Brackets
90093faffc Ensure headless doesn't crash when profiler on.
Obviously, the frame profiler graph isn't very useful in headless (maybe
it could be?) but at least, it's nice to not have to change the .h and
rebuild all kinds of files when using headless for testing.
2015-05-30 12:53:57 -07:00
Henrik Rydgard
001eda39e0 Add really primitive save preview on "Next Slot". Improve pause screen layout a little. 2015-02-01 18:04:50 +01:00
Henrik Rydgard
d24abb3af0 More GetPointer cleanup. memCardDirectory->memStickDirectory. 2014-10-19 23:20:51 +02:00
Henrik Rydgard
dda3ca3d5f D3D9 init error reporting improved. Use "override" properly in Host. 2014-09-20 21:55:58 +02:00
Unknown W. Brackets
b68be67d9a Workaround headless help not showing graphics. 2014-08-30 09:57:56 -07:00
Henrik Rydgård
5d836bfa5a Merge pull request #6765 from hrydgard/thin3d
Switch UI drawing from GL to Thin3D. This activates the D3D9 path as well.
2014-08-23 10:52:21 +02:00
Henrik Rydgard
92c3775d95 Start hooking up D3D 2014-08-22 20:55:04 +02:00
Unknown W. Brackets
dc91dc1ce8 x86jit: Support fpu rounding modes for mul, etc.
Fixes Gods Eater Burst loading PSP savedata, but can no longer load old
savedata.
2014-08-21 23:59:55 -07:00
Unknown W. Brackets
5c470a1923 Remove bgm and sfx volume settings.
They don't actually work in all games, and this only confuses users.

Also, the default 7 lowers the volume of audio detected as bgm or sfx, but
not other volume.  This means that some audio may have played too loud in
some games by default, which will be fixed by this change.
2014-08-17 14:16:59 -07:00
Henrik Rydgard
39cde7fc48 Hide "immersive mode" on pre-kitkat Android. 2014-07-20 12:11:50 +02:00
Unknown W. Brackets
098e763b82 Enable block transfers in headless for testing.
This allows us to do memory (not just screenshot) tests with GLES, yay.
2014-06-14 08:44:14 -07:00
Unknown W. Brackets
63b5ec3d85 Allow specifying a root path for host0:/.
This way, similar to the PSP, we can have a root path outside the test.
2014-04-19 21:43:09 -07:00
Unknown W. Brackets
4c35c1bb13 Attempt to load VFS in headless on Android.
Otherwise we don't get fonts, and savestates fail to load.
2014-03-25 00:49:03 -07:00
Unknown W. Brackets
36c3a0dd68 Make it possible to load a savestate in headless.
This is primarily useful to reproduce crashes or test performance.
2014-03-25 00:46:21 -07:00
Unknown W. Brackets
2e69aa913d Run tests with the max volume set. 2014-02-17 01:39:54 -08:00
Henrik Rydgard
c6caff61bf Update native with buildfix. Fix some resizing issues. 2014-02-10 15:14:45 +01:00
Henrik Rydgard
8b6b491820 Remove obsolete outputWidth/outputHeight 2014-02-10 12:44:35 +01:00
Unknown W. Brackets
0c7e9b9849 headless: default to single core.
Was zero before, causing divide by zero issues.
2013-12-15 11:59:24 -08:00
Henrik Rydgard
109decf481 Actually fix headless build, doh 2013-12-08 12:12:45 +01:00
Unknown W. Brackets
83dd3c74d6 Fix a stupid mistake in the headless timeout.
Although, still need to figure out why it gets corrupted.
2013-12-06 21:18:26 -08:00
Henrik Rydgard
32f479b0a6 Assorted log spam reductions.
Also let Java know of some important events. Not used for anything yet.
2013-12-04 17:43:00 +01:00
Unknown W. Brackets
f1f87e7b6f Workaround random headless timeouts on Android/etc.
Seems like we have stack corruption, so probably it's not that XMM etc.
need to be saved.  Not sure what exactly is up.
2013-11-23 10:42:28 -08:00
Unknown W. Brackets
fa7467f03d Try to find the flash0 directory in headless. 2013-11-17 10:15:49 -08:00
Unknown W. Brackets
c1c1b5213e Fix logging missing in headless with --log. 2013-11-17 10:15:13 -08:00
Unknown W. Brackets
712b582d26 Remove coreParam.disableG3Dlog and enableDebugging.
One was uninitialized, the other one unused.
2013-11-09 11:02:12 -08:00
Unknown W. Brackets
5d523ea06a Add android-ndk-profiler v3.2.
This allows fairly easy profiling on Android without rooting.
2013-11-02 21:54:45 -07:00
Henrik Rydgård
f73aec2570 Only disable buffered rendering by default on Galaxy Y instead of all
Armv6 devices.

Would have like to use gpu feature flags but GL isn't necessarily initialized
when we load the config. Will need to find a different solution.

Also a buildfix for headless non-windows.
2013-10-25 11:47:44 +02:00
Unknown W. Brackets
04f1df4415 Set directories in headless on Windows.
Caused some tests to fail.
2013-10-24 21:29:48 -07:00
Unknown W. Brackets
c486a09c2c Use a better default font path on Linux/Mac OS X.
This way people don't have to copy to ~/.ppsspp/flash0.
The override in ~/.ppsspp/PSP/flash0 still works.
2013-10-20 23:45:56 -07:00
Unknown W. Brackets
b190208aa5 Fix non-Windows headless build. 2013-10-14 02:35:47 -07:00
Unknown W. Brackets
af2ccbb9da Rename flashDirectory to flash0Directory. 2013-10-12 16:08:39 -07:00
Unknown W. Brackets
54f2bc8262 Don't frameskip unthrottle in headless.
Could make graphic tests wrong or something.
2013-09-19 00:29:19 -07:00
Henrik Rydgård
198434c6eb Merge pull request #3823 from unknownbrackets/headless
Fix headless on buildbot (command line length), speed up further
2013-09-18 00:48:17 -07:00
Unknown W. Brackets
48eef19538 Optionally read test filenames from stdin.
This way we don't hit command line length limits.
2013-09-18 00:17:30 -07:00
Unknown W. Brackets
7a81b802cc Don't shutdown gl in headless so quickly.
Oops.
2013-09-17 22:50:43 -07:00
Henrik Rydgård
2de4db3e31 Merge pull request #3818 from unknownbrackets/headless
Headless - use auto compare, just build test list in test.py
2013-09-17 09:08:20 -07:00
Unknown W. Brackets
43c3fd9386 Remove compare logic from test.py, use --compare. 2013-09-17 08:40:20 -07:00