Commit Graph
45601 Commits
Author SHA1 Message Date
Henrik Rydgård 28caa3cc1e Merge pull request #178 from unknownbrackets/threadpool
Cut down on overhead from std::bind copies in the threadpool.
2013-12-08 14:51:14 -08:00
Unknown W. Brackets 2278bee910 Fix double free when saving. 2013-12-08 14:46:05 -08:00
Henrik Rydgård 9f8f023ff1 Merge pull request #4758 from unknownbrackets/softgpu2
Use multiple threads if available for softgpu.
2013-12-08 14:42:19 -08:00
Unknown W. Brackets 637a9de75d Optimize out some clear mode checks.
Since it's really common and the rasterizer is slow for large draws.
2013-12-08 14:24:17 -08:00
Unknown W. Brackets 598d509fb9 Use multiple threads if available for softgpu.
VIVA OVERHEAD.  But it's actually generally faster this way, even with
only 2 cores running (but not a huge improvement then.)

On an i7, this improves things ~2.5x with 8 cores.
2013-12-08 13:41:20 -08:00
Unknown W. Brackets 9b6dc64387 Cut down on overhead from std::bind copies. 2013-12-08 13:39:05 -08:00
Unknown W. Brackets 9f82f52189 Small safety tweaks to PathBrowser. 2013-12-08 13:38:31 -08:00
Henrik Rydgård 7dd9951aa2 Merge pull request #4756 from unknownbrackets/savedata
Load savedata images dynamically, cleanup oneshot file reads
2013-12-08 12:49:04 -08:00
Unknown W. Brackets 0636a65ad9 Use ReadEntireFile() a few more places.
This fixes one or two minor memory leaks.
2013-12-08 12:02:37 -08:00
Unknown W. Brackets 2d3f0758c1 Dynamically manage PPGe images so 50+ are okay.
Otherwise, we try to allocate all at once and could run out of ram.

Should fix #2242.
2013-12-08 11:06:18 -08:00
Unknown W. Brackets 18bcf63ee9 Add a convenience helper to load a file oneshot. 2013-12-08 11:05:36 -08:00
Henrik Rydgard e2080f6c65 Revert "STENCIL_VALUE_UNKNOWN for DECR/INCR/INVERT"
This reverts commit 59d3b92e71.

Revert "zero alpha if stencil op consistently says to zero for format 5551 as well"

This reverts commit ed07a7f411.
2013-12-08 17:48:22 +01:00
Henrik Rydgård 93d501518a Merge pull request #4754 from raven02/patch-32
Zero alpha if stencil op consistently says to zero for format 5551
2013-12-08 06:36:38 -08:00
raven02 59d3b92e71 STENCIL_VALUE_UNKNOWN for DECR/INCR/INVERT 2013-12-08 22:19:13 +08:00
raven02 ed07a7f411 zero alpha if stencil op consistently says to zero for format 5551 as well 2013-12-08 22:05:31 +08:00
Sacha 68e5dbf517 Turn b.sh in to a centralised CMake builder for Native(Linux/BSD), Android, iOS and Blackberry. 2013-12-08 23:18:06 +10:00
Henrik Rydgard 7b4759384f Only zero alpha if stencil op consistently says to zero.
Otherwise we may be better off keeping the alpha.
2013-12-08 13:04:54 +01:00
Henrik Rydgard 109decf481 Actually fix headless build, doh 2013-12-08 12:12:45 +01:00
Sacha 1fbab7d728 Qt: Update miscellaneous 2013-12-08 21:09:24 +10:00
Henrik Rydgard 628bf497dd Hopefully fix UV scaling properly this time.
Check the faces in Hexyz Force please.
2013-12-08 11:52:20 +01:00
Henrik Rydgard f5e7a33c68 Handle duplicate on-screen messages better (promote the old one to top). 2013-12-08 11:51:33 +01:00
Henrik Rydgard 6e47401baf Fix headless build 2013-12-08 11:47:41 +01:00
Sacha a0c5af288c Add InputBox as a platform-specific system function instead of a host function. Enable it on all Qt platforms. Add Set Nickname to mobile Qt. 2013-12-08 20:16:34 +10:00
Sacha 9e5df6028a Add InputBox as a platform-specific system function instead of a host function. Enable it on all Qt platforms. 2013-12-08 20:15:09 +10:00
Henrik Rydgård 08a0709091 Merge pull request #4751 from unknownbrackets/reporting
Cut down on reporting of FBO misuse
2013-12-08 01:18:39 -08:00
Henrik Rydgård 49980441a3 Merge pull request #4747 from unknownbrackets/stencilalpha
Attempt to pick a better blend for stencil replace
2013-12-08 01:13:18 -08:00
Unknown W. Brackets dc87cd2045 Stop reporting system param reads.
So games use it.  We'll have to decide what to do with that information,
but the reporting isn't that useful now.
2013-12-08 01:10:24 -08:00
Unknown W. Brackets 0e4ca7f9a8 Stop reporting logic ops.
We support them on desktop and they're not really often used.
2013-12-08 00:48:23 -08:00
Unknown W. Brackets 9de7b34d1c Cut down on reporting of FBO misuse.
These cases are likely to be okay.
2013-12-08 00:38:10 -08:00
Unknown W. Brackets 2df1db4c7e Avoid optimizing out both constant colors. 2013-12-07 23:24:25 -08:00
Unknown W. Brackets a4780f5199 Don't forget the alpha in non-fixed blending. 2013-12-07 23:21:45 -08:00
Unknown W. Brackets 5d64434c99 Clean up filters in the vcxproj. 2013-12-07 20:34:09 -08:00
Sacha d5147c4234 Add ability to change nickname and take screenshot to Qt Desktop UI. 2013-12-08 04:57:06 +10:00
Unknown W. Brackets 808eeb3a25 Attempt to pick a better blend for stencil replace. 2013-12-07 10:02:46 -08:00
Sacha 0a0351d2b0 Windows buildfix. Needed path in UI.vcxproj. 2013-12-08 03:21:40 +10:00
Sacha 69806cdd3b Windows buildfix. 2013-12-08 03:21:09 +10:00
Sacha f8da6550f7 Only include image writing headers on Windows. Since only it does screenshots right now. 2013-12-08 03:06:15 +10:00
Sacha e6b4348bf6 Use libpng16 filter for Windows proj files. 2013-12-08 03:05:21 +10:00
Sacha dde88b6ebd Windows/Android buildfix. 2013-12-08 02:49:51 +10:00
Sacha 8aa73bfc8d iOS buildfix. 2013-12-08 02:49:26 +10:00
Sacha 21ae157f66 Remove stb_image usage (no longer used for anything). 2013-12-08 02:37:06 +10:00
Sacha d0023bbdd9 Remove stb_image usage (no longer used for anything). 2013-12-08 02:35:53 +10:00
Sacha 6ea758db67 Use libpng to load PNGs. Fixes #4689. 2013-12-08 01:42:17 +10:00
Sacha 64b5146718 Add libpng16 to project. 2013-12-08 01:37:22 +10:00
Henrik Rydgard 0c413d118d Update native: disable EGLConfigChooser on android.
It seems to choose suboptimal mode on several phones.

May cause us to get no stencil buffer in non-buffered, but meh.
2013-12-07 15:21:16 +01:00
Henrik Rydgard 4e2212de40 Skip the EGLConfigChooser. Seems to choose a suboptimal mode on several phones.
We just have to live with no stencil in non-buffered. Play buffered.
2013-12-07 15:20:11 +01:00
Henrik Rydgård 0368b5e037 Merge pull request #4744 from raven02/patch-28
Set src/dst alpha to non GL_ZERO in case STENCIL_VALUE_UNIFORM
2013-12-07 06:11:28 -08:00
raven02 60def7baf9 Set src/dst alpha to non GL_ZERO in case STENCIL_VALUE_UNIFORM 2013-12-07 21:11:47 +08:00
Henrik Rydgard e7c3c76f6b Update native 2013-12-07 12:53:32 +01:00
Henrik Rydgard bc1ad342e7 Add easy way to check gl version >= something 2013-12-07 12:24:09 +01:00