1. 08 Apr, 2011 1 commit
  2. 11 Mar, 2011 1 commit
  3. 17 Feb, 2011 2 commits
    • Sam Lantinga's avatar
      Our minimum Windows version is Windows 2000, so it's okay to directly call... · baf813b8
      Sam Lantinga authored
      Our minimum Windows version is Windows 2000, so it's okay to directly call InitializeCriticalSectionAndSpinCount()..
      baf813b8
    • Sam Lantinga's avatar
      Fixed bug 1128 · 58d7fc47
      Sam Lantinga authored
       Patrick Baggett      2011-02-16 22:58:33 PST
      
      This enhancement is for both x86/x64 Windows.
      
      The SDL implementation of mutexes uses the Win32 API interprocess
      synchronization primitive called a "Mutex". This implementation is subpar
      because it has a much higher overhead than an intraprocess mutex. The exact
      technical details are below, but my tests have shown that for reasonably high
      contention (10 threads on 4 physical cores), it has 13x higher overhead than
      the Win32 CriticalSection API.
      
      If this enhancement is accepted, I will write a patch to implement SDL mutexes
      using the critical section API, which should dramatically reduce overhead and
      improve scalability.
      
      
      -- Tech details --
      Normally, Win32 Mutexes are used across process boundaries to synchronize
      separate processes. In order to lock or unlock them, a user->kernel space
      transition is necessary, even in the uncontented case on a single CPU machine.
      Win32 CriticalSection objects can only be used within the same process virtual
      address space and thus to lock one, does not require a user->kernel space
      transition for the uncontended case, and additionally may spin a short while
      before going into kernel wait. This small spin allows a thread to obtain the
      lock if the mutex is released shortly after the thread starts spinning, in
      effect bypassing the overhead of user->kernel space transition which has higher
      overhead than the spinning itself.
      58d7fc47
  4. 12 Feb, 2011 1 commit
  5. 25 Jan, 2011 1 commit
    • Sam Lantinga's avatar
      Include windows.h in a single point in the source, so we can be consistent... · b4497865
      Sam Lantinga authored
      Include windows.h in a single point in the source, so we can be consistent about the definition of UNICODE and have core utility functions for Windows that all modules can share.
      
      I think this also fixes the bug relating to non-latin characters in filenames, since UNICODE wasn't defined in SDL_rwops.c
      
      --HG--
      rename : src/SDL_android.cpp => src/core/android/SDL_android.cpp
      rename : src/SDL_android.h => src/core/android/SDL_android.h
      b4497865
  6. 21 Jan, 2011 1 commit
    • Sam Lantinga's avatar
      Fixed bug #925 · 9d25ba27
      Sam Lantinga authored
      Changed "win32" to "windows"
      
      --HG--
      rename : include/SDL_config_win32.h => include/SDL_config_windows.h
      rename : src/events/scancodes_win32.h => src/events/scancodes_windows.h
      rename : src/haptic/win32/SDL_syshaptic.c => src/haptic/windows/SDL_syshaptic.c
      rename : src/joystick/win32/SDL_dxjoystick.c => src/joystick/windows/SDL_dxjoystick.c
      rename : src/joystick/win32/SDL_dxjoystick_c.h => src/joystick/windows/SDL_dxjoystick_c.h
      rename : src/joystick/win32/SDL_mmjoystick.c => src/joystick/windows/SDL_mmjoystick.c
      rename : src/loadso/win32/SDL_sysloadso.c => src/loadso/windows/SDL_sysloadso.c
      rename : src/main/win32/SDL_win32_main.c => src/main/windows/SDL_windows_main.c
      rename : src/main/win32/version.rc => src/main/windows/version.rc
      rename : src/thread/win32/SDL_sysmutex.c => src/thread/windows/SDL_sysmutex.c
      rename : src/thread/win32/SDL_syssem.c => src/thread/windows/SDL_syssem.c
      rename : src/thread/win32/SDL_systhread.c => src/thread/windows/SDL_systhread.c
      rename : src/thread/win32/SDL_systhread_c.h => src/thread/windows/SDL_systhread_c.h
      rename : src/thread/win32/win_ce_semaphore.c => src/thread/windows/win_ce_semaphore.c
      rename : src/thread/win32/win_ce_semaphore.h => src/thread/windows/win_ce_semaphore.h
      rename : src/timer/win32/SDL_systimer.c => src/timer/windows/SDL_systimer.c
      rename : src/video/win32/SDL_ceddrawrender.c => src/video/windows/SDL_ceddrawrender.c
      rename : src/video/win32/SDL_ceddrawrender.h => src/video/windows/SDL_ceddrawrender.h
      rename : src/video/win32/SDL_d3drender.c => src/video/windows/SDL_d3drender.c
      rename : src/video/win32/SDL_d3drender.h => src/video/windows/SDL_d3drender.h
      rename : src/video/win32/SDL_gapirender.c => src/video/windows/SDL_gapirender.c
      rename : src/video/win32/SDL_gapirender.h => src/video/windows/SDL_gapirender.h
      rename : src/video/win32/SDL_gapirender_c.h => src/video/windows/SDL_gapirender_c.h
      rename : src/video/win32/SDL_gdirender.c => src/video/windows/SDL_gdirender.c
      rename : src/video/win32/SDL_gdirender.h => src/video/windows/SDL_gdirender.h
      rename : src/video/win32/SDL_msctf.h => src/video/windows/SDL_msctf.h
      rename : src/video/win32/SDL_vkeys.h => src/video/windows/SDL_vkeys.h
      rename : src/video/win32/SDL_win32clipboard.c => src/video/windows/SDL_windowsclipboard.c
      rename : src/video/win32/SDL_win32clipboard.h => src/video/windows/SDL_windowsclipboard.h
      rename : src/video/win32/SDL_win32events.c => src/video/windows/SDL_windowsevents.c
      rename : src/video/win32/SDL_win32events.h => src/video/windows/SDL_windowsevents.h
      rename : src/video/win32/SDL_win32gamma.c => src/video/windows/SDL_windowsgamma.c
      rename : src/video/win32/SDL_win32gamma.h => src/video/windows/SDL_windowsgamma.h
      rename : src/video/win32/SDL_win32keyboard.c => src/video/windows/SDL_windowskeyboard.c
      rename : src/video/win32/SDL_win32keyboard.h => src/video/windows/SDL_windowskeyboard.h
      rename : src/video/win32/SDL_win32modes.c => src/video/windows/SDL_windowsmodes.c
      rename : src/video/win32/SDL_win32modes.h => src/video/windows/SDL_windowsmodes.h
      rename : src/video/win32/SDL_win32mouse.c => src/video/windows/SDL_windowsmouse.c
      rename : src/video/win32/SDL_win32mouse.h => src/video/windows/SDL_windowsmouse.h
      rename : src/video/win32/SDL_win32opengl.c => src/video/windows/SDL_windowsopengl.c
      rename : src/video/win32/SDL_win32opengl.h => src/video/windows/SDL_windowsopengl.h
      rename : src/video/win32/SDL_win32shape.c => src/video/windows/SDL_windowsshape.c
      rename : src/video/win32/SDL_win32shape.h => src/video/windows/SDL_windowsshape.h
      rename : src/video/win32/SDL_win32video.c => src/video/windows/SDL_windowsvideo.c
      rename : src/video/win32/SDL_win32video.h => src/video/windows/SDL_windowsvideo.h
      rename : src/video/win32/SDL_win32window.c => src/video/windows/SDL_windowswindow.c
      rename : src/video/win32/SDL_win32window.h => src/video/windows/SDL_windowswindow.h
      rename : src/video/win32/wmmsg.h => src/video/windows/wmmsg.h
      9d25ba27
  7. 24 Jan, 2010 1 commit
    • Sam Lantinga's avatar
      Fixed bug #926 · 4d3df8b3
      Sam Lantinga authored
      Updated copyright to LGPL version 2.1 and year 2010
      
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404453
      4d3df8b3
  8. 08 Dec, 2008 1 commit
    • Sam Lantinga's avatar
      Updated copyright date · 0c30a927
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403321
      0c30a927
  9. 10 Jul, 2006 1 commit
  10. 25 Feb, 2006 1 commit
  11. 21 Feb, 2006 1 commit
  12. 10 Feb, 2006 1 commit
  13. 07 Feb, 2006 2 commits
  14. 06 Feb, 2006 1 commit
  15. 01 Feb, 2006 1 commit
  16. 04 Jan, 2004 1 commit
  17. 06 Mar, 2002 1 commit
  18. 14 Dec, 2001 1 commit
  19. 26 Apr, 2001 1 commit
    • Sam Lantinga's avatar
      Initial revision · 2f110628
      Sam Lantinga authored
      --HG--
      extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401
      2f110628