Mercurial > sdl-ios-xcode
annotate include/SDL_getenv.h @ 1542:a8bf1aa21020
Fixed bug #15
SDL_blit_A.mmx-speed.patch.txt --
Speed improvements and a bugfix for the current GCC inline mmx
asm code:
- Changed some ops and removed some resulting useless ones.
- Added some instruction parallelism (some gain)
The resulting speed on my Xeon improved upto 35% depending on
the function (measured in fps).
- Fixed a bug where BlitRGBtoRGBSurfaceAlphaMMX() was
setting the alpha component on the destination surfaces (to
opaque-alpha) even when the surface had none.
SDL_blit_A.mmx-msvc.patch.txt --
MSVC mmx intrinsics version of the same GCC asm code.
MSVC compiler tries to parallelize the code and to avoid
register stalls, but does not always do a very good job.
Per-surface blending MSVC functions run quite a bit faster
than their pure-asm counterparts (upto 55% faster for 16bit
ones), but the per-pixel blending runs somewhat slower than asm.
- BlitRGBtoRGBSurfaceAlphaMMX and BlitRGBtoRGBPixelAlphaMMX (and all
variants) can now also handle formats other than (A)RGB8888. Formats
like RGBA8888 and some quite exotic ones are allowed -- like
RAGB8888, or actually anything having channels aligned on 8bit
boundary and full 8bit alpha (for per-pixel alpha blending).
The performance cost of this change is virtually 0 for per-surface
alpha blending (no extra ops inside the loop) and a single non-MMX
op inside the loop for per-pixel blending. In testing, the per-pixel
alpha blending takes a ~2% performance hit, but it still runs much
faster than the current code in CVS. If necessary, a separate function
with this functionality can be made.
This code requires Processor Pack for VC6.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 15 Mar 2006 15:39:29 +0000 |
parents | 22f39393668a |
children | a1b03ba2fcd0 |
rev | line source |
---|---|
1277
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
1 /* |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
2 SDL - Simple DirectMedia Layer |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1277
diff
changeset
|
3 Copyright (C) 1997-2006 Sam Lantinga |
1277
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
4 |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
5 This library is free software; you can redistribute it and/or |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1277
diff
changeset
|
6 modify it under the terms of the GNU Lesser General Public |
1277
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
7 License as published by the Free Software Foundation; either |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1277
diff
changeset
|
8 version 2.1 of the License, or (at your option) any later version. |
1277
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
9 |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
10 This library is distributed in the hope that it will be useful, |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
11 but WITHOUT ANY WARRANTY; without even the implied warranty of |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1277
diff
changeset
|
13 Lesser General Public License for more details. |
1277
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
14 |
1312
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1277
diff
changeset
|
15 You should have received a copy of the GNU Lesser General Public |
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1277
diff
changeset
|
16 License along with this library; if not, write to the Free Software |
c9b51268668f
Updated copyright information and removed rcs id lines (problematic in branch merges)
Sam Lantinga <slouken@libsdl.org>
parents:
1277
diff
changeset
|
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
1277
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
18 |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
19 Sam Lantinga |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
20 slouken@libsdl.org |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
21 */ |
088b806d877e
*** empty log message ***
Sam Lantinga <slouken@libsdl.org>
parents:
1268
diff
changeset
|
22 |
1354
22f39393668a
Fixed build problem with SDL_string.c
Sam Lantinga <slouken@libsdl.org>
parents:
1353
diff
changeset
|
23 /* DEPRECATED */ |
1353
7ba544e2888d
Started the process of improving configure support, and merging C types
Sam Lantinga <slouken@libsdl.org>
parents:
1336
diff
changeset
|
24 #include "SDL_stdinc.h" |