Glbasic v12 bugs for MACOSX (Mountian Lion)

Previous topic - Next topic

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

kanonet

Did you try to set VSync with LIMITFPS?
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrTAToad

What platform are you using MUSICVOLUME with - it works fine on Windows

kanonet

I guess he uses MacOS as its stated in the headline.
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

MrTAToad


spacefractal

#5
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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/