Thanks for your input Donny.
I did find out that the recommended reaction to losing OpenGL context is to
reload resources and states. I found this a bit sad, since from what I
gather it is not necessary, but it’s something SDL doesn’t yet have the
facilities to avoid. On the other hand, it’s not a bad idea to have neatly
organized texture and state reloading routines, so I guess I’ll do that. I
haven’t tried it yet, but it’s on my list.
One solution I considered to circumvent the fullscreen issue is to simulate
fullscreen by resizing the window, repositioning it, and removing the frame.
Is there an obvious flaw in this approach?
I haven’t tried other virtual machines than virtualbox. Have you had success
running realtime 3D sdl/opengl applications in a virtual machine of some
kind? I’m rather certain performance is not the fundamental problem, since
my program currently runs an order of magnitude faster than it needs to in
native mode. In fact, the problem I was encountering, to the best of my
ability to determine, is that mouse deltas were greatly exaggerated. If I
had a way to mitigate this it would be fun.
Thanks!
ChristianOn Thu, Jun 3, 2010 at 3:41 PM, Donny Viszneki <donny.viszneki at gmail.com>wrote:
On Thu, Jun 3, 2010 at 3:27 PM, Christian Leger <@Christian_Leger> wrote:
I guess my question regarding fullscreen toggling didn’t interest anyone
don’t blame you considering that the limitations of win32 SDL are pointed
out in some FAQs and other info available on the main website. The fact
that
I came to that information rather late, however, is because I was
googling
and coding for quite a bit, trying out many different potential solutions
–
so the problem was lack of direction, not effort. It would be nice to
know
if anyone has suggestions for workarounds, or if any info is available
regarding eventual releases of either SDL 1.2 or 1.3.
Sorry that no one picked up your post.
The right solution is to reload your graphical assets every time you
lose your OpenGL context. How are you currently dealing with this?
I recall some mention of an SDL_Event type that would alert you to the
loss of OpenGL context, but I haven’t used MSWindows for so long that
I have allowed myself to be ignorant of such matters.
A new phenomenon of interest has cropped up: I tried using virtualbox to
code for win32 (I can only abide booting the whole machine in windows for
so
long), and the program works, but the mouse input goes haywire. I know
far
too little about how virtual machines interact with OS scheduling and
other
performance impactors, so I was wondering if anyone knows how a virtual
machine will affect SDL’s input mechanisms for mouse and if there’s
anything
to say about it that should give me the appropriate cautions.
Have you tried other emulators?
–
http://codebad.com/
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org