Commit Graph

40 Commits

Author SHA1 Message Date
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
Henrik Rydgard caacaf6744 Just a few small things 2012-11-07 20:59:56 +01:00
Henrik Rydgard 48bc1afe26 Add vcmp ES condition code, uncached mirror of scratchpad 2012-11-06 16:01:41 +01:00
Henrik Rydgard b214a1a1da Revert "Better wrapper system, and fixed warnings"
This reverts commit a00b1855cb.

Conflicts:

	Core/HLE/FunctionWrappers.h
	Core/HLE/sceCtrl.cpp
	Core/HLE/sceKernelModule.cpp
2012-11-05 10:05:09 +01:00
Henrik Rydgard 6bed1afb72 Merge branch 'master' of https://github.com/artart78/ppsspp into artart78-master 2012-11-04 23:59:26 +01:00
Henrik Rydgard 64cc573703 Switch to "GPL 2.0 or later" for various reasons. I wrote most of the code I imported from Dolphin (which is GPL2-but-not-later), so it should be OK. 2012-11-04 23:24:00 +01:00
Arthur Blot a00b1855cb Better wrapper system, and fixed warnings 2012-11-04 15:08:23 +01:00
Henrik Rydgard 4f7ad15758 Add snapshot of the whole source code. 2012-11-01 16:19:01 +01:00