Henrik Rydgård
517ca0569e
Merge pull request #7058 from unknownbrackets/io-minor
...
Handle negative read sizes more correctly
2014-11-07 12:16:09 +01:00
Henrik Rydgård
4eb9dc05c0
Merge pull request #7055 from unknownbrackets/reloc-fix
...
Correct unload of imported vars
2014-11-07 12:15:50 +01:00
Unknown W. Brackets
097a483d77
x86jit: Micro optimize vs2i a bit.
2014-11-06 22:45:54 -08:00
Unknown W. Brackets
79ff697f9d
Return an error code for negative file sizes.
2014-11-06 08:45:45 -08:00
Unknown W. Brackets
c085b9c082
Don't try to read negative file sizes.
2014-11-06 08:45:33 -08:00
Unknown W. Brackets
49aff7c75d
Correct unload of imported vars.
...
From level99procrastinator, just slightly adjusted.
2014-11-05 22:57:25 -08:00
Unknown W. Brackets
7819b97c9a
iOS buildfix.
2014-11-04 08:32:43 -08:00
TwistedUmbrella
6797044476
Correct a namespace typo
2014-11-04 05:10:22 -05:00
Unknown W. Brackets
3061e89250
Fix copy/paste mistake.
2014-11-04 01:41:17 -08:00
Unknown W. Brackets
0d36d4e082
Add a helper to reduce duplicate code.
...
This is not performance critical. I wonder if compilers can inline
closures?
2014-11-03 23:50:23 -08:00
Unknown W. Brackets
16ca2b0155
x86jit: Fix trig vv2ops on 32-bit, arg.
2014-11-03 23:43:18 -08:00
Unknown W. Brackets
5ef2df7ebd
Fix a small warning on 32-bit.
...
Would only practically matter for very very large reads on very very large
csos.
2014-11-03 23:32:25 -08:00
Unknown W. Brackets
3e95763a3f
x86jit: Implement other rounding modes in vf2i.
...
3% improvement in Grand Knights History. I know other games use these
too.
2014-11-03 23:27:05 -08:00
Unknown W. Brackets
717cf25f0d
x86jit: Use our sincos funcs for VV2Op as well.
...
Small (0.7%) speedup in Gods Eater Burst. There's probably SSE
approximations we could use instead, but those will also need at least xmm
reg flushing/thunking.
At least this avoids flushing gprs, etc. The sin and cos ops are fairly
common.
2014-11-03 22:13:38 -08:00
Unknown W. Brackets
014445655d
Actually clear the hash->func map on forget.
...
Better not to have dangling pointers.
2014-11-03 13:49:45 -08:00
Unknown W. Brackets
10bcb323ac
Oops, forgot to free up zlib resources.
2014-11-03 13:40:09 -08:00
Henrik Rydgård
f1d43e7e90
Merge pull request #7046 from unknownbrackets/perf
...
Improve load and shutdown performance a bit
2014-11-03 21:50:10 +01:00
Unknown W. Brackets
b279b6d461
Typo.
2014-11-03 09:00:20 -08:00
Unknown W. Brackets
ad6b176e11
Naturally, modern C++ would not build on Symbian.
2014-11-03 08:56:45 -08:00
Unknown W. Brackets
61c21340fb
Warning fixes.
2014-11-03 08:34:34 -08:00
Unknown W. Brackets
9d86d3ca9b
Use std::unordered_multimaps in a few places.
2014-11-03 08:31:52 -08:00
Unknown W. Brackets
67a7205bdd
Switch to a multimap for the hash->function map.
2014-11-03 07:59:56 -08:00
Unknown W. Brackets
8a57e37f33
Minor tweak to avoid some function call overhead.
2014-11-03 07:36:17 -08:00
Unknown W. Brackets
28b3b841d5
Implement optimized multi-block reads for iso/cso.
...
This of course means less fread() calls, and is faster. It improves load
time even on my desktop.
2014-11-02 21:43:27 -08:00
Unknown W. Brackets
9c5ad44000
Add an interface to read multiple blocks at once.
2014-11-02 19:54:13 -08:00
Unknown W. Brackets
bf50baf698
Cleanup some old typedefs.
2014-11-02 18:46:12 -08:00
Unknown W. Brackets
a391296c17
Small optimization to func/var import.
...
Should compare the nid first, of course, faster and less likely to match
anyway.
2014-11-02 17:53:46 -08:00
Unknown W. Brackets
2d5733407b
Small optimization to __PPGeInit().
...
Small factor in startup time.
2014-11-02 17:44:24 -08:00
Unknown W. Brackets
56322bdad4
Improve performance of ForgetFunctions().
...
Mostly matters during shutdown, but also module unload.
2014-11-02 17:32:04 -08:00
Unknown W. Brackets
dd497e5a02
Show an error when savedata can't be written.
...
Normally we'll log when the disk is full for files, but if we can't even
create the folder, we'll get errors trying to write into a non-existing
directory.
2014-11-02 13:30:00 -08:00
Unknown W. Brackets
f3f7fb2648
Show an on screen message when disk full is hit.
2014-11-02 13:29:25 -08:00
Unknown W. Brackets
24f365d94c
Return an error for new savedata on a full stick.
2014-11-02 12:47:09 -08:00
Unknown W. Brackets
a6a234add1
Return errors on disk full for file creation.
2014-11-02 12:40:31 -08:00
Unknown W. Brackets
d4e8bd96af
Handle disk full more properly in sceIoWrite().
2014-11-02 10:55:27 -08:00
Unknown W. Brackets
24ce3d11ed
Another typo.
2014-11-02 08:12:29 -08:00
Henrik Rydgård
d1dbd47172
Merge pull request #7039 from xsacha/symbian_free_space
...
Check free disk space on Symbian too.
2014-11-02 09:58:32 +01:00
Sacha
b7f2de7d29
Check free disk space on Symbian too.
2014-11-02 12:27:20 +10:00
Unknown W. Brackets
f55f69c07d
Fix dumb typo in space formatting func.
2014-11-01 19:19:06 -07:00
Unknown W. Brackets
9511fd81f1
Warning fix.
2014-11-01 00:33:20 -07:00
Unknown W. Brackets
f687613d68
Check disk space on Posix/Android systems also.
...
Android apparently decided to skip statvfs() and only implement the older,
os-dependent statfs().
2014-11-01 00:33:20 -07:00
Unknown W. Brackets
2958c575a1
Check actual free disk space when games ask.
...
Windows only for the moment.
2014-11-01 00:33:19 -07:00
Henrik Rydgard
f5c9235640
Buildfix (needed an include in the header on some platforms so let's move to the cpp file)
2014-10-31 00:35:39 +01:00
Henrik Rydgard
291e5e53c0
Add feature to cache ISOs in RAM to avoid I/O stutters. 64-bit only. Loading gets slow though.
...
TODO: Make it cache in the background on load. Allow on 32-bit for small ISOs.
2014-10-31 00:14:00 +01:00
Unknown W. Brackets
258b7c9a7c
jit: Use the end just to be safe.
...
In case clearing near the end of a block.
2014-10-27 19:05:52 -07:00
Unknown W. Brackets
5bb9d32eaa
jit: Fix partial invalidation of larger blocks.
...
Fixes #7031 .
2014-10-27 19:04:19 -07:00
Unknown W. Brackets
2b16b5b79b
Use XXH64 on 64-bit systems.
...
I'm not able to reproduce any real performance difference, but I know
there are some games which do more hashing and it may help there.
2014-10-26 17:49:24 -07:00
Unknown W. Brackets
734c81223e
Support cso files with larger block sizes.
...
Calling them "frames" just to quell the confusion level in the code.
2014-10-25 21:18:12 -07:00
Unknown W. Brackets
100afc07a2
x86jit: Fix andLink cases of imm blezl, etc.
2014-10-24 08:57:56 -07:00
Unknown W. Brackets
0c1dcfeacf
Avoid comparing invalidated iterators.
2014-10-22 00:50:39 -07:00
Unknown W. Brackets
65ecc9a464
jit: Use an exclusive end in the block map.
...
Simpler, was not consistent before, oops.
2014-10-21 11:52:19 -07:00