Commit graph

499 commits

Author SHA1 Message Date
Richard Goedeken
bc144928e9 merged heads 2013-03-14 22:39:24 -07:00
Richard Goedeken
47341e3a20 fix YUV texture loading for Pocket Monsters Stadium (J) crc 665e8259 after bsmiles32 last fix to RSP plugin 2013-03-14 22:31:27 -07:00
Lioncash
16673849f7 Add missing NO_ASM block for texture crc calculation 2013-03-14 08:15:55 +01:00
Sven Eckelmann
8f939b218d Revert "Enable link time garbage collection when link time optimization is enabled"
Some linker on different platforms don't handle the garbage collection
correctly and create extreme bloated binaries. Therefore, leave it to the user
to enable this feature or not.
2013-03-14 08:08:23 +01:00
Richard Goedeken
1a638fb803 fixed compiler warning 2013-03-09 21:38:25 -08:00
Lioncash
bedb82229e Remove yet another redundant if-statement check.
Yet again, this is checked in an outer-scope if-statement
2013-03-06 22:37:58 -05:00
Lioncash
05deb4617f Removed a redundant if statement condition.
This is already checked in the if-statement before this one.
2013-03-06 22:34:42 -05:00
Lioncash
339fe53f06 Fixed a missing semicolon from the last commit. 2013-03-06 22:29:46 -05:00
Lioncash
16e488ca05 Clean up some of the source code formatting. 2013-03-06 22:17:48 -05:00
Sven Eckelmann
9e48093e0f Remove unresolvable symbol with disabled debugger 2013-02-17 17:52:50 +01:00
Richard Goedeken
fc4b00185a merged heads, fixing conflicts in src/TextureFilters.cpp 2013-02-03 09:59:10 -08:00
Richard Goedeken
c0626a9032 merged heads 2013-02-03 09:42:14 -08:00
richard42
e3116b7d2f OSX build fix 2013-02-02 22:24:04 -08:00
Sven Eckelmann
7019a53cc1 Use the found hires filename instead of regenerating it on load time
Hires textures in Glide64 can have fmt and size set to a wrong value and still
get loaded. Rice has to store the name of the filename when it got found to
allow it to load such wrong named textures. Otherwise it is part of the index
and on load it will fail to find the file again.
2013-01-30 20:35:48 +01:00
Sven Eckelmann
970f207a8d Enable link time garbage collection when link time optimization is enabled 2013-01-30 20:35:48 +01:00
Sven Eckelmann
f6a255bf25 Speed up initial png info loading by not loading the entire content
The loading of PNG files is usually CPU bound. This is caused by the filters
and compression used to reduce the size of the file. This operations aren't
necessary when the content is dropped directly after reading the image.

Only loading the PNG headers makes the loading of a complete hires texture
set nearly instant when the I/O is not limited.
2013-01-30 20:35:48 +01:00
Sven Eckelmann
93ef3da9a8 Ignore size and fmt in CRC to be able to load textures for Glide64
Glide64 ignores the fmt and size information stored in the name of the hires
texture when searching in its index of textures. Rice instead replaces the two
lower nibbles of the crc32 with the size and fmt information. This causes
problems when Rice tries to load texture from texture packs made especially for
Glide64.

The behavior of Rice is changed to find texture like Glide64. The option
LoadHiResCRCOnly can be set to False to restore the old behavior
2013-01-30 20:35:48 +01:00
Sven Eckelmann
25aae0f1c6 Use libpng to do load images as full (A)RGB images
The pngrw functionality for loading PNG files failed to load many texture
images because it didn't expect the bit depth and similar parameters. Rice only
needs 24/32 bit png files and therefore it is good enough to use the libpng
functionality to load all files as (A)RGB images.
2013-01-30 20:35:48 +01:00
Sven Eckelmann
64e3dfc016 Crop overlarge hires texture like Glide64
Texture packs developed with the focus on Glide64 seem to use too large texture
from time to time. Glide64 crops these textures correctly before they get
replaced.

Rice tend to just drop these textures. Cropping them in this context seems to
be more appropriate.
2013-01-30 20:35:48 +01:00
Sven Eckelmann
4447a578b8 Don't crash when invalid hires image was tried to load 2013-01-30 20:35:48 +01:00
lioncash
e308978f74 Fix a possible resource leak in TextureFilters.cpp for the Rice plugin. 2013-01-12 10:59:44 +01:00
lioncash
166b57c479 Clean up combiner.cpp and combiner.h for the RICE plugin. 2013-01-12 10:59:40 +01:00
lioncash
1cebbf48d9 Add more documentation to TextureFilters.cpp for gles2rice 2013-01-12 10:59:35 +01:00
lioncash
41b5db98d6 Replace tabs with spaces 2013-01-12 10:59:31 +01:00
Sven Eckelmann
78f004d2e0 Introduce WARNFLAGS for default (removable) compiler warning flags 2013-01-02 16:13:46 +01:00
Sven Eckelmann
08d0b7469d Use long long for pointers instead of long to avoid truncation on 64-bit Windows 2013-01-01 01:10:43 +01:00
Sven Eckelmann
436a1c4098 Disable PIC on MinGW to reduce warnings 2013-01-01 00:30:34 +01:00
n pepinpe
e1cd4fd937 Fix path to OSX SDK with XCode >=4.3 2012-12-31 10:43:00 +01:00
veganaize
1f66504005 Don't try to find OpenGL libraries on MacOSX and MinGW using pkg-config
MacOSX and MinGW don't provide gl.pc or glu.pc to find the cflags or libs using
pkg-config. Removing this search and replacing it with an hardcoded value is
easier on these platforms.
2012-12-19 21:57:46 +01:00
Sven Eckelmann
a8b5adec72 Use $(OBJDIR) in clean target instead of hardcoded path 2012-12-13 14:53:05 +01:00
Sven Eckelmann
c06750ed20 Allow to add a postfix for each build
The POSTFIX make option is useful for distributions to compile different
versions of the plugin in parallel. The object files will be stored in a
directory with the postfix appended and the linker result will also have this
postfix appended.
2012-12-13 14:47:25 +01:00
Sven Eckelmann
8cb19be53e Don't add lipng libs twice on MinGW 2012-12-13 12:30:44 +01:00
Sven Eckelmann
9973c9aa91 Add CROSS_COMPILE make option
The CROSS_COMPILE make option can be used to automatically prepend the prefix
to all build relevant tools to seamlessly allow cross compilation without
setting each tool name separately.

Cross compiling for MinGW32 would can be done using
$ make -C projects/unix/ CROSS_COMPILE=i686-pc-mingw32- HOST_CPU=i686 UNAME=MINGW
2012-12-13 12:25:44 +01:00
Sven Eckelmann
419d442013 Allow to change names of *-config tools for cross compiles 2012-12-13 11:33:50 +01:00
Sven Eckelmann
069856f10e Synchronize usage of environmental variables for UNAME with HOST_CPU 2012-12-13 10:52:49 +01:00
Sven Eckelmann
56e17c0400 Remove duplicated definition of CC for MinGW 2012-12-13 10:46:17 +01:00
veganaize
acafa1180f Add support for MingW32 2012-12-04 21:17:52 +01:00
Sven Eckelmann
402ba8350f Fix build on x86 with SSE inline assembler 2012-12-03 10:39:26 +01:00
Anthony J. Bentley
98dc5cf7b8 Detect OpenBSD PowerPC platforms macppc and socppc. 2012-11-12 18:04:28 -07:00
Sven Eckelmann
604872c5ba Add configuration for semi-supported architecture armel 2012-11-04 01:28:01 +01:00
Sven Eckelmann
25e2b1003c Enable experimental support for link-time optimization 2012-06-09 01:31:27 +02:00
Richard Goedeken
378dfa38ce force PIC under OSX. otherwise it crashes with weird errors 2012-03-11 14:19:35 -07:00
Richard Goedeken
dca9eed7e6 fix OSX 32-bit NO_PIC build 2012-03-11 12:27:05 -07:00
Richard Goedeken
d92872c4df Added tag 1.99.5 for changeset 93f23d50dc9c 2012-03-10 10:30:59 -08:00
Richard Goedeken
df039405f3 updating RELEASE and version info for v1.99.5 tag 2012-03-10 09:57:13 -08:00
richard42
420266bedf 1. Don't throw warnings if the NVidia opengl extension functions are missing
2. If OpenGLRenderSetting is set to the nvidia combiner, but the extension functions are missing, then set to auto rather than crash
2012-03-06 21:37:10 -08:00
Richard Goedeken
744c3601f9 update Rice Video API version to 2.1.0. The difference in the newer API is that the video render callback function now takes a boolean (int) parameter, which specifies whether the video frame has been re-drawn since the last time the render callback was called. This allows us to take screenshots without the On-Screen-Display text 2012-03-04 15:13:13 -08:00
casualjames
db28ed4aa2 Add libs. 2012-01-15 14:53:20 +01:00
Sven Eckelmann
2b009af558 Remove additional -O3 on MacOSX 2011-10-14 19:58:42 +02:00
Sven Eckelmann
4fd1072c13 Explicitly disable PIC in case of PIC=0 2011-10-13 00:01:04 +02:00