GLBasic forum

Main forum => Bug Reports => Topic started by: spacefractal on 2013-Dec-27

Title: Glbasic v12 bugs for MACOSX (Mountian Lion)
Post by: spacefractal on 2013-Dec-27
1. MUSICVOLUME seen does nothing (but volume on PLAYSOUND does work) and allways plays music in full volume.

2. Vsync reappear again with v12, even im trying to set it to sdl by using this code:

Code (glbasic) Select

INLINE
} // end namespace __GLBASIC__ - see manual for INLINE
extern "C"
{
void __stdcall SDL_GL_SetAttribute(int, int);
}

// reasuring the namespace
namespace __GLBASIC__
{
ENDINLINE

FUNCTION enablevSync:
?IFDEF MACOSX
INLINE
SDL_GL_SetAttribute(16, 1);
ENDINLINE
?ENDIF

?IFDEF OSXUNI
INLINE
SDL_GL_SetAttribute(16, 1);
ENDINLINE
?ENDIF


The code did Work for v10 as im remember, but for some reason, not with v12. Its look ugly with Karma Miwa when vsync is disabled.
Title: Re: Glbasic v12 bugs for MACOSX (Mountian Lion)
Post by: kanonet on 2013-Dec-28
Did you try to set VSync with LIMITFPS?
Title: Re: Glbasic v12 bugs for MACOSX (Mountian Lion)
Post by: MrTAToad on 2013-Dec-28
What platform are you using MUSICVOLUME with - it works fine on Windows
Title: Re: Glbasic v12 bugs for MACOSX (Mountian Lion)
Post by: kanonet on 2013-Dec-28
I guess he uses MacOS as its stated in the headline.
Title: Re: Glbasic v12 bugs for MACOSX (Mountian Lion)
Post by: MrTAToad on 2013-Dec-28
Good point :)
Title: Re: Glbasic v12 bugs for MACOSX (Mountian Lion)
Post by: spacefractal on 2013-Dec-28
Yep, is stated in the headline, MacOSX version, not Windows.

LimitFPS FrameRate,VSyncs works on Windows, but VSync does nothing on Mac.

MusicVolume did also nothing on Mac too, while its works on other platforms.

Im do heard the sld fix Gernot gave in v10 is due sld used v1, but im guess its now uses a newer version of that? (hence its might require something other instead?). That why im ask about it.

The game look awful on mac when vsync is missing.