Commit Graph

2167 Commits

Author SHA1 Message Date
Sam Lantinga
65d361b41b Added SSE and MMX optimization for SDL_FillRect() 2007-08-16 05:56:24 +00:00
Sam Lantinga
f1b05ff63b Okay, I figured out the intrinsics for SIMD memcpy 2007-08-16 02:14:13 +00:00
Sam Lantinga
fc16af50b2 Removed hermes since it's LGPL and not compatible with a commercial license.
Prepping for using MMX and SSE intrinsics instead of inline assembly.
.. except for memcpy equivalents which only get faster if they can
   exploit the parallelism of loading into multiple SIMD registers. :)
2007-08-15 08:21:10 +00:00
Sam Lantinga
377c3990ba Added code to enable multi-threaded OpenGL on Mac OS X, pending Ryan's PBO/VBO
changes.
2007-08-15 04:04:17 +00:00
Sam Lantinga
45891d1d50 Optimization suggested by Ryan:
Don't set the same OpenGL context multiple times
2007-08-15 03:52:31 +00:00
Sam Lantinga
47455281fd indent 2007-08-15 03:50:49 +00:00
Sam Lantinga
1b7386279e Date: Wed, 15 Aug 2007 01:08:38 +0200
From: Couriersud
Subject: Some SDL1.3 patches

LoadLibrary will call X11_GL_Initialize. If LoadLibrary is called before
a window is created, it will crash since structures are not properly set
up.
2007-08-15 03:34:14 +00:00
Sam Lantinga
62a3c00b46 Date: Wed, 15 Aug 2007 01:08:38 +0200
From: Couriersud
Subject: Some SDL1.3 patches

fixed a compiler warning
2007-08-15 03:20:55 +00:00
Sam Lantinga
0fe1784459 Date: Wed, 15 Aug 2007 01:08:38 +0200
From: Couriersud
Subject: Some SDL1.3 patches

Modified UpdateTexture to lock and unlock DirectFB-Surface.
2007-08-15 03:19:21 +00:00
Sam Lantinga
74a291769a Fixed crash setting 0 bpp video mode. 2007-08-15 03:18:24 +00:00
Sam Lantinga
0c2f549390 Added SSE version of SDL_FillRect() for 32-bit ARGB surfaces 2007-08-13 06:24:56 +00:00
Sam Lantinga
2a2e08c995 Shark rules!
* Loop optimization for Mac OS X - should this generally be applied?
2007-08-13 03:03:23 +00:00
Sam Lantinga
cfd7794fec Advertise the most efficient format for the screen. Of course SDL code needs
to be fixed to handle framebuffers with alpha...
2007-08-13 02:38:59 +00:00
Sam Lantinga
2d2be66919 This is byte order dependent. 2007-08-12 18:53:51 +00:00
Sam Lantinga
1de747845b indent 2007-08-12 18:44:49 +00:00
Sam Lantinga
f2c7446b24 Gained 5 FPS in testsprite because Mac OS X memset is highly optimized 2007-08-12 18:27:44 +00:00
Sam Lantinga
6d8a22e975 Test using glTextureRangeAPPLE
This actually ends up being quite a bit slower on my MacBook, but I'm
checking it in to test on a PPC iMac.

Maybe someone knows why it's slower?
2007-08-12 16:53:58 +00:00
Sam Lantinga
49204a8cdd indent 2007-08-12 16:26:10 +00:00
Sam Lantinga
61ed776db3 Fixed compiling the Altivec blit code 2007-08-12 15:41:36 +00:00
Sam Lantinga
dbb114bdf1 Optimized OpenGL renderer for Mac OS X.
The SDL 1.2 API version of testsprite went from 120 FPS to 320 FPS. :)
2007-08-12 07:02:28 +00:00
Sam Lantinga
6a45ac924c Fixed crash if conversion fails. Use ISO name for Latin-1 2007-08-12 05:48:51 +00:00
Sam Lantinga
e9aa9188bf Fixed compile warnings with Visual C++ 2007-08-12 00:01:41 +00:00
Sam Lantinga
ed767d84cc Exported the software renderer texture functions to make easier to create
a renderer based on a framebuffer.

Fixed an initialization bug with the dummy video display mode.
2007-08-11 23:26:03 +00:00
Sam Lantinga
0693d77922 Date: Sat, 11 Aug 2007 02:03:16 +0200 (CEST)
From: couriersud arcor.de
To: slouken@libsdl.org
Subject: Directfb driver for SDL1.3

Hi,

the attachment contains a patch for a SDL1.3 directfb driver. It supports:

- Renderer "directfb":

Hardware acceleration as supported by the underlying directfb driver. With a
radeon X850, testsprite2 runs at 50% to 70% of OpenGL (X11, dri) performance.

Also supports hardware accelerated yuv overlays. This must be enabled by sett
ing:

export SDL_DIRECTFB_YUV_DIRECT=1

- Renderer "opengl"

Supports software opengl using mesa opengl (make linux-directfb).

Some more information may be found in README.DirectFB

There will certainly still be some bugs, and there is some debug code around.
 When I find some time, I will compile against directfb-0.9.25 as distributed
 with ubuntu 7.04.

The diff also contains a fix for SDL_LockYUVOverlay fixing a bug in  *pixels
and pitches initialization.

Kind regards,

couriersud
2007-08-11 21:51:19 +00:00
Sam Lantinga
1f37d8fe78 Updated the credits for SDL 1.3 2007-08-11 21:44:49 +00:00
Sam Lantinga
8a6126e90d Whoops, it's not quite that easy - fixed bug in SDL_ClearDirtyRects() 2007-08-11 21:42:36 +00:00
Sam Lantinga
ebe7769ae3 Optimized dirty rect code 2007-08-11 21:34:08 +00:00
Sam Lantinga
16792e5ed3 Emphasized the separation between SDL_Surface and SDL_Texture
- SDL_Surface is a system memory representation of pixel data
 - SDL_Texture is a video memory representation of pixel data

The concept of SDL_Surface with SDL_HWSURFACE is no longer used.

Separated SDL_Texture types by usage rather than memory type
 - SDL_TEXTUREACCESS_STATIC is for rarely changed pixel data,
   can be placed in video memory.
 - SDL_TEXTUREACCESS_STREAMING is for frequently changing pixel
   data, usually placed in system memory or AGP memory.

Optimized the SDL_compat usage of the OpenGL renderer by only
using one copy of the framebuffer instead of two.
2007-08-11 20:54:31 +00:00
Sam Lantinga
ecf8db2e86 indent 2007-08-11 20:46:24 +00:00
Sam Lantinga
4b88504be7 Don't run indent on the Xcode templates 2007-08-11 18:51:12 +00:00
Sam Lantinga
600b035f58 Figured out how to optimize the SDL_compat path and simplify writing framebuffer drivers 2007-08-10 16:03:35 +00:00
Sam Lantinga
11b7672b33 1.3 video API design chat 2007-08-07 07:08:25 +00:00
Sam Lantinga
25a96a4cc1 Some thoughts on 1.3 video written down 2007-08-07 06:04:27 +00:00
Bob Pendleton
45238ff004 changed to use SDL_realloc() 2007-07-26 17:58:17 +00:00
Bob Pendleton
d3668d3a1d make indent 2007-07-25 21:23:28 +00:00
Bob Pendleton
5f14f00c25 Added gamma table support to X11. Also now supports DirectColor visuals. 2007-07-25 21:22:55 +00:00
Bob Pendleton
624a1851eb make indent 2007-07-24 18:46:45 +00:00
Sam Lantinga
686b4969d1 Switched afxres.h to winresrc.h 2007-07-23 18:46:09 +00:00
Bob Pendleton
3d7eee3429 Oops, meant PsuedoColor not TrueColor 2007-07-23 16:55:38 +00:00
Sam Lantinga
958f927c3d indent 2007-07-23 01:17:38 +00:00
Sam Lantinga
5a79edd04b Added support for the --depth command line option 2007-07-23 01:11:52 +00:00
Sam Lantinga
5c79673fa0 Fixed bug #467
Remove trailing commas from enums
2007-07-22 13:22:47 +00:00
Sam Lantinga
7839797798 Unpacked project archives to get individual file history in subversion 2007-07-21 17:09:01 +00:00
Sam Lantinga
c499cebb64 Better windres detection 2007-07-18 04:05:40 +00:00
Sam Lantinga
7f9e338fe8 Fixed bug #460
Added SDL_VIDEO_OPENGL_CGL to the default Mac OS X config file.
2007-07-16 14:19:47 +00:00
Sam Lantinga
4c2ff36986 Added support for building version.rc in Windows build. 2007-07-16 03:28:48 +00:00
Sam Lantinga
9ab551b38c Fixed bug #428
This fix is overkill, but approved by Doug Lea, and he'll be releasing a
new version of his malloc.c sometime next month.
2007-07-16 00:08:35 +00:00
Sam Lantinga
c498b4bf26 Merged fix for bug #457 from SDL 1.2 2007-07-15 21:54:16 +00:00
Sam Lantinga
54b8c863e2 indent 2007-07-15 21:53:51 +00:00
Ryan C. Gordon
039e57b150 Merged r3292:3293 from branches/SDL-1.2: testjoystick verbose info. 2007-07-15 17:25:59 +00:00