Commit graph

57 commits

Author SHA1 Message Date
Henrik Rydgård
ad2791a9cf More HLE logging cleanup 2025-03-05 17:02:46 +01:00
Henrik Rydgård
3ce72f87d3 Another batch of log cleanup 2025-01-28 09:31:38 +01:00
LunaMoo
864a4b38aa
Work around Brothers in Arms speed issue via compat hack (#18513)
Co-authored-by: Henrik Rydgård <hrydgard@gmail.com>
2024-09-18 09:51:07 +00:00
Henrik Rydgård
e01ca5b057
Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
shenweip
2d68dc1c16 Workaround for date bug in Car Jack Streets. 2020-10-11 16:19:06 +08:00
Unknown W. Brackets
b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
Unknown W. Brackets
4144e71b7a Replay: Add file header handling. 2019-07-04 20:36:17 -07:00
Unknown W. Brackets
bd1ed897cf Global: Fix some warnings. 2017-11-25 14:08:49 -08:00
LunaMoo
e78a644c00 spaces->underscores:) 2017-11-14 09:46:31 +01:00
LunaMoo
825e100614 Small changes. Thx [Unknown] 2017-11-14 07:42:58 +01:00
LunaMoo
aba4a4dfdb Change KernelTimeNow to KernelTimeNowFormatted and return nice timestamp. 2017-11-14 07:16:40 +01:00
LunaMoo
2ff4104ddf Requested changes. 2017-11-14 06:33:49 +01:00
LunaMoo
99ab8dfc99 Use gameID and emulated timestamp for Avi/Wav dump filenames. 2017-11-14 03:53:45 +01:00
Henrik Rydgard
38609f3e6b Cleam up thread names a bit, name the Main thread.
Also makes some logging VERBOSE.
2014-06-29 12:53:03 +02:00
Unknown W. Brackets
05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
sum2012
40fffd7d49 Reduce sceKernelGetSystemTime log level
spam in Pacman World 3
2014-01-28 12:38:14 +08:00
Unknown W. Brackets
610b7f6e4c Fix cross-platform compat problem with savestates. 2014-01-15 08:03:37 -08:00
Sacha
effca1e4c7 Improvements to timer hack. 2013-11-20 12:55:56 +10:00
Unknown W. Brackets
9c874c754e Use the us based time for rtc/etc.
Instead of incorrect conversions from ticks based on current mhz.
2013-10-24 01:10:09 -07:00
Unknown W. Brackets
4a444776ab Sign extend sceKernelUSec2SysClock().
Wow, I guess this has been broken forever.
2013-10-22 07:45:51 -07:00
Unknown W. Brackets
50e9e45d65 Check version in each DoState() func.
They bail on PointerWrap error or bad version.
2013-09-14 20:23:03 -07:00
Henrik Rydgard
8c88dff5a4 More log categories, use them (and existing ones). Improve log config. 2013-09-07 22:02:55 +02:00
Unknown W. Brackets
e51265d26e Reschedule in time spin loops.
It seems like rescheduling should potentially happen much more often, but
it could be a bit dangerous as far as compatibility.

Improves sound quality in Crimson Gem Saga and Where Is My Heart?
2013-08-04 10:11:56 -07:00
Unknown W. Brackets
b46ab5f5a4 Always defined WIN32_LEAN_AND_MEAN.
Might as well, less mess everywhere else.
2013-07-28 21:04:20 -07:00
Unknown W. Brackets
7b7801d59a Switch to including Windows.h from an intermediate.
This makes it easier for Xbox which uses a separate header.
2013-07-28 21:04:19 -07:00
Unknown W. Brackets
81f7103e0b Use *_le for the sceKernel* funcs. 2013-07-25 08:04:34 -07:00
Unknown W. Brackets
db54bffe14 Use a base time throughout rtc and kernel time.
This way, time doesn't move abnormally as far as the game can tell,
even when savestates and fast forward and pause are used.
2013-05-05 10:12:29 -07:00
Unknown W. Brackets
f1f2cf0603 Replace some hleEatCycles() with actual PSP timing.
Measured several runs at 8 per run with test overhead check.
2013-05-04 23:42:10 -07:00
Sacha
29651c026b Windows buildfix. Harmattan buildfix (it doesn't have lambdas). Tabify XBRZ. 2013-05-01 12:58:51 +10:00
Sacha
5ea37772d7 pre-C++11 buildfix. Linux buildfix. 2013-05-01 11:19:01 +10:00
Sacha
7e3fed70cf Implement gettimeofday kernel function for non-Windows platforms. Helps some homebrew run. 2013-05-01 04:06:43 +10:00
Unknown W. Brackets
4f473e50c8 Eat a few cycles in sceKernelGetSystemTimeWide(). 2013-04-13 16:31:24 -07:00
Unknown W. Brackets
0918ec8598 Return negative for UnscheduleEvent().
It usually won't be, but it could be negative.

Also some other minor warnings.
2013-04-05 20:44:17 -07:00
raven02
bd413d4caf Revert sceKernelSysClock2USec() 2013-03-31 18:09:27 +08:00
raven02
7b01828ef0 Quick fix 2013-03-31 01:08:23 +08:00
raven02
c6087ea3db Improve few sceKernel clock functions 2013-03-31 00:51:34 +08:00
Unknown W. Brackets
75c5afa147 Add delays in some timing funcs that games tightloop.
Greatly improves performance in Legend of Heroes 1.
2013-03-19 07:48:41 -07:00
Unknown W. Brackets
2a6457b6ab Cut down on h files including PointerWrap.
This makes changes to it a bit faster to build.
2013-02-04 08:26:59 -08:00
Henrik Rydgard
3f0816cd05 Usec2Sysclock fixes 2013-02-03 22:14:19 +01:00
Marcin Mikołajczyk
4497252398 Wrap sceKernelTime functions 2013-02-03 16:33:01 +01:00
Unknown W. Brackets
ac8b35b2ef Optimize sysclock / sysclock 2 usec.
Legend of Heroes 1/2/3 call these a ton, making them quite slow.
Not sure if it's a bug, but they can be more optimal which'll make
it easier to debug anyway.
2013-02-02 20:42:16 -08:00
YaPeL
9cde301f4d Wrap functions on HLETables 2013-01-12 15:17:35 -03:00
Unknown W. Brackets
1c156784b6 Be more deterministic about the time.
This way, if a state is loaded, the game doesn't know.
Also, if the host is slow/sped up, it won't get out of sync.
2013-01-02 01:09:44 -08:00
Unknown W. Brackets
4a713309a3 Make some libc-like funcs behave more like hw. 2013-01-02 00:35:31 -08:00
Unknown W. Brackets
62b8b9af75 Fix sceKernelLibcTime() when time_t is 64 bit. 2013-01-01 21:27:18 -08:00
Henrik Rydgard
08f8f4b323 Cleanup sceRtc, move sceFont to its own file. 2012-11-22 22:30:44 +01:00
Henrik Rydgard
f378f959e1 Fix issues with games that don't call sceDisplaySet mode. Add option to run without FBOs, may be useful on slow devices. 2012-11-20 10:59:23 +01:00
Henrik Rydgard
f226afc3ca Implement a missing time function 2012-11-20 01:04:39 +01:00
kev :)
b9ff4295e7 Make RTC tests pass 2012-11-11 00:33:16 +00:00