Commit Graph
208 Commits
Author SHA1 Message Date
Henrik Rydgard 02a89306d1 Warning fixes, sprintf->snprintf 2014-09-13 23:51:07 +02:00
Sacha 1ce39d7e95 Improve frame timing on non-Windows. Disable IdleTiming when audio is disabled. 2014-07-16 01:04:43 +10:00
Unknown W. Brackets 5cd4a17e88 Fix periodic events drifting when eating cycles.
Need to set the next timer before rescheduling threads or etc.
2014-07-01 00:26:15 -07:00
Unknown W. Brackets 5db79dcf11 Fix some missing semicolons on log statements. 2014-06-29 19:09:37 -07:00
Unknown W. Brackets 8172e838a5 Avoid a fast-forward effect when not drawing.
This fixes loading screens and such, which drop the fps down to 0 or 6
according to our measure, which can distort audio if we've got free time.

If the system is not keeping up, should have the same behavior as before.
2014-06-26 00:37:03 -07:00
Unknown W. Brackets 23dc69fc9b Time frames based on current, not last timestep.
We need to decide the nextFrameTime when we know how many vblanks it took,
not before.  Otherwise, we will miss-time when the fps changes.
2014-06-26 00:36:17 -07:00
Unknown W. Brackets 19f4ad8c5c Dumb mistake in "real time sync" fix. 2014-06-25 00:44:18 -07:00
Henrik Rydgård fea0a26113 Merge pull request #6414 from unknownbrackets/resched
Reschedule immediately in many cases
2014-06-24 22:41:58 +02:00
Unknown W. Brackets 87b3a7e566 Avoid overly long lags, recover if system too slow.
This will recover better if the system took too long.  Also, fixes #6415
by never waiting too long.
2014-06-24 08:27:21 -07:00
Unknown W. Brackets 8e80bd3928 Wake good pri threads immediately from vblank wait. 2014-06-24 00:45:08 -07:00
The Dax eb94587391 sceDisplayGetVcount should apparently reschedule. Fixes #3234. 2014-06-18 19:35:16 -04:00
Henrik Rydgard 4e6baaf360 wasPaused int->bool 2014-06-15 00:03:55 +02:00
Henrik Rydgard 3b2fed472e Correct timing on resume, avoids small speed burst when resuming gameplay from pause 2014-06-14 23:56:16 +02:00
Unknown W. Brackets aa6355a9e5 Reschedule after many cases of eating cycles.
All of these eat enough cycles they could cause issues in a loop, and I'm
pretty sure they would reschedule.
2014-06-13 00:30:21 -07:00
Unknown W. Brackets 66d0cef0de Avoid calling select() with an error pointlessly.
It's just a spin loop unfortunately anyway.
2014-06-03 01:48:10 -07:00
Unknown W. Brackets 0bba5310b6 Fix lagsync with alternate speed set. 2014-06-03 01:36:20 -07:00
Unknown W. Brackets 39b1d97beb Make the lag sync adapt to minor variance. 2014-06-02 23:34:48 -07:00
Unknown W. Brackets 29f2519861 Add an experimental sync to keep real time sync.
May help input, audio, and network related lag problems.
2014-06-02 23:34:48 -07:00
sum2012 d2f7a9974f Add sceDisplaySetMode error code base on JPCSP 2014-04-26 04:41:01 +08:00
Unknown W. Brackets ed99c33cd7 Interpret iForceMaxEmulatedFPS based on 1.001 NTSC. 2014-04-13 21:47:11 -07:00
Unknown W. Brackets 4c1c694d4b Use flags to avoid hashing textures when unchanged.
If only parameters change (like wrapping or clut, etc.) we don't need to
rehash the data - we know it hasn't changed.

Should reduce the distance between lazy texture hashing on and off.
2014-04-13 14:22:39 -07:00
Henrik Rydgard 2240cae3bf Prevent overrunning the debug print overlay buffer 2014-03-24 11:41:18 +01:00
Unknown W. Brackets 05ab192c9c Reduce includes in Core/HLE/.
Especially templates.
2014-03-15 11:22:19 -07:00
Henrik Rydgård b7651b61c7 Merge pull request #5546 from chinhodado/fixes
some minor fixes and changes
2014-02-23 19:12:42 +07:00
chinhodado 20ed422c3a remove a duplicate assignment 2014-02-22 23:23:33 -05:00
sum2012 f0ad992b67 Add sceCtrl_driver and sceDisplay_driver 2014-02-17 20:46:57 +08:00
Henrik Rydgård 9bea246509 Upgrade savestates correctly for the brightnessLevel addition. 2014-02-04 17:10:46 +01:00
raven02 b783723098 Implement sceDisplaySetBrightness()/sceDisplayGetBrightness() 2014-02-04 22:22:06 +08:00
DanyalZia 251b0e86ee Separates out auto-skip from frameskipping 2014-01-26 00:50:00 +05:00
Unknown W. Brackets 10454654bf Ignore unreasonable timestep values.
This fixes #5202 (Crisis Core stuttering) and improves Mana Khemia's "Who
are you?" sound effect while loading savedata.  May also improve Monster
Hunter's similar issue.
2014-01-24 23:55:19 -08:00
Unknown W. Brackets 4541ec4b05 Smooth out detected FPS changes.
Helps reduce uneven FPS rates and sound effect glitches during transitions
(e.g. between a 30 fps scene and a 60 fps menu, or etc.)
2014-01-23 22:23:43 -08:00
Unknown W. Brackets f8883279b5 Eat some cycles when flipping the framebuffer. 2014-01-19 12:53:19 -08:00
Unknown W. Brackets bf37e55b9f Don't return latched framebuf if not latched. 2014-01-12 23:29:03 -08:00
Unknown W. Brackets 4f585fd7a6 Fix a few minor typos. 2014-01-11 22:59:52 -08:00
Henrik Rydgård 79ff2f0ba8 Start untangling our include mess a little. 2013-12-29 23:34:45 +01:00
Unknown W. Brackets 9e9c6c0719 Allow auto frameskip to skip > 1 frame. 2013-12-15 13:27:16 -08:00
Unknown W. Brackets 160ee740d2 Fix some vblank callback wait problems.
Stupid mistake, missing this.  May help #3680.
2013-12-05 23:26:59 -08:00
Henrik Rydgård 7c7c4aaadc Add "u_time" uniform to postprocessing shaders. 2013-12-02 17:24:55 +01:00
Henrik Rydgard 1a6b4ceafb Compensate frame delay for the PSP refreshing at 59.94 Hz 2013-11-20 23:53:28 +01:00
Unknown W. Brackets 425ea8b846 Track hcount as an integer, not a double.
Since it's even with NTSC.  Makes much more sense.
2013-11-18 08:12:49 -08:00
Unknown W. Brackets 2b74f7f812 Switch to 59.94 fps rather than 60. 2013-11-18 08:06:09 -08:00
Unknown W. Brackets 39cd7f812a Move ctrl to after vblank, not before.
Tests I'd done long ago suggested this wasn't right, but we made other
timing fixes since then, and now tests are showing this is the right
order.

May improve Patapon/etc. timing, or may hurt it...
2013-11-17 19:32:20 -08:00
Sacha fb7c3d96fd Introduce Timer Hack.
Has been used in previous Symbian releases to improve speed. Was thought to only work on Wipeout but actually works on most games?
Games that run based on internal timer will experience 60 VPS without frameskip.
2013-11-16 02:16:17 +10:00
The Dax d56114e30d Fix VS2013. 2013-11-12 18:37:06 -05:00
Sacha 91ddddc2ef Remove unused Thread.{cpp,h} 2013-11-13 02:50:46 +10:00
Sacha d616cc72a2 Add Blackberry statistics overlay option. 2013-10-28 14:19:27 +10:00
Unknown W. Brackets 100c188df6 Fix savestate backwards compat.
Broken since 80702109f5.
2013-10-24 20:01:14 -07:00
danyalzia 036a180708 Update sceDisplay.cpp 2013-09-17 11:41:12 +05: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
Unknown W. Brackets c3839a53e5 Fix some minor warnings. 2013-09-07 22:40:08 -07:00