Mercurial > sdl-ios-xcode
annotate src/timer/Makefile.am @ 1295:c3e36ac8a94c
Date: Sun, 6 Mar 2005 17:06:20 +0100
From: Per Inge Mathisen
Subject: [SDL] Fullscreen refresh on win32
Windows has a terrible default for fullscreen 3D apps of 60mhz refresh
rate. This can be fixed by the user by going into his driver's
control panel and forcing the refresh rate higher. However, this not a
very user friendly way about it, and in any case SDL contains no code
that could figure out this that condition has afflicted the user.
So the question is, could SDL fix this for the user? It is possible
under Windows to request a higher refresh rate. The danger is of
course that if the user has an old monitor, and you request a too high
refresh rate, the monitor could be damaged. However, I believe there
might be a way around that: Check before switching what refresh rate
the user's desktop runs in, and if our fullscreen dimensions are equal
or less than those of the desktop, use the higher refresh rate of 60
and the desktop rate.
Since most users run their desktops in the same or higher resolution
something sane, this should fix this problem for most users.
Thoughts?
An alternative is to add an SDL_GL_GetAttribute(SDL_GL_REFRESH_RATE)
option so that programs can bitch at their users at their own
convenience.
- Per
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 30 Jan 2006 06:56:10 +0000 |
parents | 623b453a3219 |
children |
rev | line source |
---|---|
0 | 1 |
2 ## Makefile.am for the SDL timer library | |
3 | |
4 noinst_LTLIBRARIES = libtimer.la | |
5 | |
173
83018110dce8
Added initial support for EPOC/Symbian OS (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
138
diff
changeset
|
6 ARCH_SUBDIRS = $(srcdir)/amigaos \ |
83018110dce8
Added initial support for EPOC/Symbian OS (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
138
diff
changeset
|
7 $(srcdir)/beos \ |
509
dad72daf44b3
Added initial support for Dreamcast (thanks HERO!)
Sam Lantinga <slouken@libsdl.org>
parents:
281
diff
changeset
|
8 $(srcdir)/dc \ |
173
83018110dce8
Added initial support for EPOC/Symbian OS (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
138
diff
changeset
|
9 $(srcdir)/epoc \ |
83018110dce8
Added initial support for EPOC/Symbian OS (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
138
diff
changeset
|
10 $(srcdir)/linux \ |
83018110dce8
Added initial support for EPOC/Symbian OS (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
138
diff
changeset
|
11 $(srcdir)/macos \ |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
173
diff
changeset
|
12 $(srcdir)/mint \ |
630
550bccdf04bd
Added initial support for RISC OS (thanks Peter Naulls!)
Sam Lantinga <slouken@libsdl.org>
parents:
509
diff
changeset
|
13 $(srcdir)/riscos \ |
173
83018110dce8
Added initial support for EPOC/Symbian OS (thanks Hannu!)
Sam Lantinga <slouken@libsdl.org>
parents:
138
diff
changeset
|
14 $(srcdir)/win32 |
0 | 15 |
16 # Include the architecture-independent sources | |
17 COMMON_SRCS = SDL_timer.c SDL_timer_c.h SDL_systimer.h | |
18 | |
19 # Include the architecture-specific sources | |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
173
diff
changeset
|
20 if TARGET_MINT |
754
623b453a3219
Fixed "dist" make target for newer versions of automake
Sam Lantinga <slouken@libsdl.org>
parents:
630
diff
changeset
|
21 ARCH_SRCS = SDL_systimer.c mint/SDL_vbltimer.S mint/SDL_vbltimer_s.h |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
173
diff
changeset
|
22 else |
0 | 23 ARCH_SRCS = SDL_systimer.c |
281
c5010ab8ba35
Added initial support for Atari (thanks Patrice!)
Sam Lantinga <slouken@libsdl.org>
parents:
173
diff
changeset
|
24 endif |
0 | 25 |
26 libtimer_la_SOURCES = $(COMMON_SRCS) $(ARCH_SRCS) | |
27 | |
28 ## Let automake know that it shouldn't distribute linked sources | |
29 BUILT_SOURCES = $(ARCH_SRCS) | |
30 | |
31 ## Let automake know that it should remove these for distribution | |
32 DISTCLEANFILES = $(ARCH_SRCS) | |
33 | |
34 # The architecture specific directories need to be copied into place | |
35 # when building a distribution. | |
36 dist-hook: | |
37 (cd $(distdir) && rm -f $(BUILT_SOURCES)) | |
38 cp -rp $(ARCH_SUBDIRS) $(distdir) | |
39 (cd $(distdir) && rm -rf `find . -name CVS`) |