Commit Graph

176 Commits (737897653ae3cf6d3cd98728fd111528f2b4c8bd)

Author SHA1 Message Date
frosch 7108b0aa3b (svn r27575) -Fix [FS#6404]: Memory leak when disabling palette animation. (JGR) 8 years ago
rubidium 0c2f4bdc2b (svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces) 10 years ago
rubidium 9f654b200d (svn r26970) -Fix (r26969): non-sse animated blitter crashed occasionally 10 years ago
rubidium eabb35a874 (svn r26969) -Fix (r26869): black palette didn't work very well with unmasked 32bpp sprites 10 years ago
rubidium beb540ec55 (svn r26538) -Codechange: remove double accounting of the drivers 10 years ago
rubidium 034735a54c (svn r26509) -Codechange: replace strdup with stredup (the latter ensures the return is not NULL) 10 years ago
rubidium 2be4215f43 (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 10 years ago
rubidium 6504817680 (svn r26473) -Fix: make sure there is no uninitialised sprite data; the other blitters cleared the memory too 10 years ago
peter1138 3465686076 (svn r26463) -Fix (r10190ish): Add special handling for PALETTE_CRASH to work for non-8bpp-mapped sprites. 10 years ago
frosch da253a33c3 (svn r26334) -Fix: 32bit compilation. 11 years ago
rubidium 4f48e99c64 (svn r26260) -Codechange: add template parameters for (non) translucent and (non) animated sprites, so the least expensive variant can be chosen (MJP) 11 years ago
rubidium ec66bd461b (svn r26259) -Codechange: add and maintain some general flags about sprites to prevent unneeded execution of expensive code (MJP) 11 years ago
rubidium 4585f74faa (svn r26258) -Codechange: deduplicate Draw methods (MJP) 11 years ago
rubidium 3df799c1c6 (svn r26257) -Codechange: replace most of the SSE macros by functions 11 years ago
rubidium 2f3c3d2ba6 (svn r26256) -Codechange: do not load some data when it is not (often) used later on (MJP) 11 years ago
rubidium 5849290640 (svn r26255) -Codechange: improve performance of brightness adjustment (MJP) 11 years ago
rubidium d263ec2bd9 (svn r26254) -Codechange: MOVD is better in some cases than PINSRD (MJP) 11 years ago
rubidium d27f085ef6 (svn r26253) -Codechange: remove margin limitation to preserve block type (MJP) 11 years ago
rubidium 3f1550ed2f (svn r26252) -Codechange: deduplicate code for margin case (MJP) 11 years ago
rubidium 64fb166b74 (svn r26251) -Codechange: prepare Draw code for code deduplication (MJP) 11 years ago
rubidium 0d43f2f437 (svn r26250) -Codechange: deduplicate darkening (e.g. shadow) code (MJP) 11 years ago
rubidium b9823410cc (svn r26249) -Codechange: simplify/cleanup ALPHA_BLEND macro (MJP) 11 years ago
rubidium 1b8b8288b0 (svn r26248) -Fix (r26223): missed compiler warning (MJP) 11 years ago
rubidium 08d405ea09 (svn r26247) -Fix [FS#5854, FS#5855]: Possible out of bounds reads with the sse blitters (MJP) 11 years ago
planetmaker b67933bd4d (svn r26223) -Codechange: Silence some compile warnings about unititialized variables in the SSE blitters (MJP) 11 years ago
rubidium b40b95e2ab (svn r26222) -Codechange: use SSE instructions for transparent colour "remap" in the SSE2/SSSE3 blitters as well 11 years ago
rubidium dbec2223b1 (svn r26221) -Codechange: normalize constant names in anim-sse4 with the others (MJP) 11 years ago
rubidium bf4ea2594a (svn r26215) -Codechange: rework code so one can test if a blitter factory exists before attempting trying to instantiate an instance 11 years ago
rubidium 793dc27096 (svn r26214) -Add: specialised animated SSE4 blitter (MJP)
With 32bpp base set about 15-20% faster in the Draw function (slower with 8bpp base set). Overall, with 32bpp base set, about 5% faster.
11 years ago
rubidium e25733c417 (svn r26213) -Add: specialised non-animated SSE4 blitter (MJP)
With 32bpp base set about 40% faster than 32bpp-optimized, or about 10% for 8bpp base sets in the Draw function. Respectively about 8 and 1% of total run time
11 years ago
rubidium 730127b67e (svn r26212) -Add: specialised non-animated SSSE3 blitter (MJP)
With 32bpp base set about 35% faster than 32bpp-optimized, or about 10% for 8bpp base sets in the Draw function. Respectively about 6 and 1% of total run time
11 years ago
rubidium 0b08fb44f4 (svn r26211) -Add: specialised non-animated SS2 blitter (MJP)
With 32bpp base set about 30% faster than 32bpp-optimized, or about 10% for 8bpp base sets in the Draw function. Respectively about 5 and 1% of total run time
11 years ago
rubidium 29405f89ed (svn r26210) -Codechange: add infrastructure for not registering a blitter 11 years ago
rubidium 4a911754b5 (svn r26209) -Codechange: remove some template magic and simplify some code 11 years ago
rubidium d709a7f465 (svn r26108) -Codechange: some coding style (whitespace) 11 years ago
rubidium c5727f49d9 (svn r26103) -Fix: prevent odd overflows due to integer promotion 11 years ago
rubidium 99910d0d4f (svn r25958) -Fix: overriding method of DrawLine was not updated when parameters were added making it non-functional 11 years ago
fonsinchen 19661eeef8 (svn r25911) -Add: Support for drawing dashed lines. 11 years ago
frosch 554e14420c (svn r25820) -Codechange: More const-ness. 11 years ago
planetmaker f00d9976f9 (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
frosch 3a0611f792 (svn r24610) -Change: [NewGRF] Set the reference brightness of 32bpp mask recolouring to 128. 12 years ago
rubidium ddae614e74 (svn r24111) -Codechange: use Colour more instead of manually bitstuffing 12 years ago
frosch b421b2a97a (svn r23989) -Fix-ish: Zero the offsets of disabled zoomlevels. 13 years ago
frosch d8db4e3e9e (svn r23988) -Fix: Typo in comment. 13 years ago
rubidium 46894cc2b7 (svn r23927) -Fix [FS#5056]: 32bpp animated blitter was optimised a bit too far regarding not needing to update the colour mapping when (re)initialising the palette 13 years ago
michi_cc a55a77cbae (svn r23889) -Codechange: Centralise sprite resizing in one place. (peter1138) 13 years ago
rubidium d5eeab43b7 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
truebrain dea311a07e (svn r23729) -Fix (r23670) [FS#4941]: if you increase the buffer size, also increase the bytes per pixel 13 years ago
truebrain ee94a7512e (svn r23727) -Codechange: speedup the 32bpp palette animation by reducing the amount of compares. This is possible because the function is called with only 2 possible conditions: from 0 to 255 (full palette update, 8bpp only) or from PALETTE_ANIM_START to 255 13 years ago
peter1138 570d2dcbed (svn r23726) -Fix (r23670): Remove debugging code added accidentally 13 years ago