Commit Graph

10682 Commits

Author SHA1 Message Date
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
Sam Lantinga
ef4035f039 indent 2007-07-15 16:59:16 +00:00
Sam Lantinga
c53b963473 Split acinclude.m4 into its component parts for easy updating 2007-07-15 01:51:11 +00:00
Ryan C. Gordon
8ac0a66e8f Merged r3261:3262 from branches/SDL-1.2: MMX/YUV with __OPTIMIZE__.
"Mac OS X/x86 won't build the MMX/YUV inline assembly without optimizations
 enabled (not enough registers), so for now, we only build it if we see
 the __OPTIMIZE__ #define, which GCC provides when you build at -O1 or higher."
2007-07-14 07:28:45 +00:00
Ryan C. Gordon
dbfdef0054 Reverted r3255:3256. Don't actually need it unless the build is broken. :) 2007-07-14 07:05:19 +00:00
Ryan C. Gordon
a587ed562a Merged r3257:3258 from branches/SDL-1.2: unused MMX variables. 2007-07-14 07:03:07 +00:00
Ryan C. Gordon
34c08ae1e9 Merged r3255:3256 from branches/SDL-1.2: stdlib problem with SDL_memcpy macro. 2007-07-14 06:46:33 +00:00
Patrice Mandin
04c06e94eb Use correct function 2007-07-14 00:07:37 +00:00
Patrice Mandin
449514cde4 Missing variable declarations 2007-07-14 00:03:04 +00:00
Patrice Mandin
2e5f27ad54 Rename LockAudio,UnlockAudio to LockDevice,UnlockDevice. Also some small fixes 2007-07-13 23:58:22 +00:00
Patrice Mandin
8eac2e2d05 Delete old files 2007-07-13 22:55:54 +00:00
Patrice Mandin
1c6a373e3d Update GEM driver to new API, will have to fill the void later :) 2007-07-13 22:55:15 +00:00
Patrice Mandin
b0096fae26 Disable video extensions atm 2007-07-13 22:52:53 +00:00
Patrice Mandin
13f058d4eb Missing include file 2007-07-13 22:51:42 +00:00
Patrice Mandin
960c1fbf71 Simplify setting window title 2007-07-13 16:11:58 +00:00
Bob Pendleton
3dc377941a This code adds support for DirectColor visuals to SDL 1.3. The support uses part of the Xmu library. To ensure that the library is
available and to keep people form having to install yet another library I have added the essential parts of Xmu in
src/video/extensions/XmuStdCmap and an include file in src/video/extensions. The support makes use of standard X11 mechanisms to
create color maps and make sure that an application uses the same color map for each window/visual combination. This should make it
possible for gamma support to be implemented based on a single color map per application.

Hurm... it looks like "make indent" modified a few extra files. Those are getting committed too.
2007-07-12 20:00:50 +00:00