Installing a BlitzMax App on user MAC

Started by Midimaster, July 02, 2021, 13:47:17

Previous topic - Next topic

Steve Elliott

#30
Sure, no problem.

I still get the garbage, but it's not flashing like mad now - just a quick flickering.

Great.  Now *everything* on my Mac screen is flickering.  BlitzMaxNG seems unstable!

Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Derron

so the "flashing" was possibly based on the glcontext-thing (SetGraphics call).

Now this is reduced and not done so often - "quick flickering".


If now "everything" is flickering then maybe the OpenGL support in Steves Mac OS is ... not as it should (or no longer "100% compatible").
Maybe we should try to replicate the issue in a custom little maxgui-app (doing stuff on two canvases, switching around).
Having a "open source" test app allows mac users to compile the test stuff on their own devices.

Maybe one could then test if sdl.mod (and the opengl stuff in there) does a better job.


bye
Ron

Steve Elliott

My mac was working perfectly fine before BlitzMaxNG screwed it up!   >:(
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Midimaster

Upps.... sad to hear this... I would not think this is possible.

I do nothing special with the Mac. Are you too using BlitzMax NG?

I do not use any modules related to graphics, etc... Only the standard BlitzMax approach.
I do not select any driver, etc..

My MAC MINI has a different graphic card than you have: Intel UHD Grpahics 630 1536MB


Startup-Sequence:
Code (BlitzMax) Select

SuperStrict

Import koriolis.zipstream
Import BaH.RtMidi
Import MaxGUI.Drivers

' my own code sources:
Include "AurisFunktionen.bmx"
Include "AurisKonstanten.bmx"

Include "AurisAudio.bmx"
Include "AurisIntervall.bmx"
Include "AurisAkkorde.bmx"
Include "AurisMDI.bmx"
Include "AurisLaden.bmx"

Include "AurisAssi.bmx"
Include "AurisMelodie.bmx"
Include "AurisPara.bmx"
Include "Tastatur.bmx"

' codes sources over all my projects:
Include "../Gemeinsam\Lizenz.bmx"
Include "../Gemeinsam\LizenzenDemo.bmx"
Include "../Gemeinsam\Klassen.bmx"


AppTitle="Auris"

Incbin "DATEN.ZIP"
SetzePfade
DatenPfad="ZIP::Incbin::DATEN.ZIP//"
KopiereAppDateien

Lizenz.VersionsString="1.10"

If DatenPfad.Contains("::")
IniClass.Schreiben "","Allgemein", "LastStart", CurrentDate() + " " + CurrentTime()
EndIf

' language:
Global Language:TMaxGUILanguage[9] , AktSprache%=1
SprachLoader 0,"english"
SprachLoader 1,"deutsch"
SprachLoader 2,"czech"
SprachLoader 3,"new"
SetLocalizationMode(LOCALIZATION_ON|LOCALIZATION_OVERRIDE)
SetLocalizationLanguage Language[AktSprache]

DatenLaden
MDI.FormLoad    ' loads Main- Window (here only menu and one canvas)
InfoFenster.FormLoad
Lizenz.Formload

If Lizenz.Ok()>0
ShowGadget Lizenz.Window
DisableGadget MDI.Window
EndIf

KopiereStdDateien
LektionenBrowser.FormLoad
LektionenAssistent.FormLoad

DemoWindow.StartUp()
ChangeWindowTitle()

ErstelleAntwortButtons()
Noten.CreateIt 450,280,330,200
KlavierTyp.Create
MonoChord.Create
AktInstrument=IniClass.Value("","Allgemein", "Instrument")

CreateTimer 60

SpielMode=KEIN_SPIEL 'FINDE_INTERVALL
Sichtbar 0,0,0,0,0
SeedRnd MilliSecs()

AllesBeiResizeWindow
While WaitEvent()
   Select EventID()
Case EVENT_KEYDOWN
     .....



...on the way to Egypt

Midimaster

#34
Quote from: Derron on July 08, 2021, 10:51:07
so the "flashing" was possibly based on the glcontext-thing (SetGraphics call).

no I think what Steve reports is a faster flickering. So the problem still remains. As I raised the Timer-Frequency from 20 to 60 this seems to be the reason for the new flickering speed.

It still looks like BlitzMax NG has a FLIP problem on this graphic card. For me it sounds like there is a second FLIP or VSYNC wich shows the content of an undefined buffer.

Very strange is now, that the problem remains after closing the app. I cannot see any reason for such a behavior. As I do not want to damage Steve's computer, I have to stopp the testing now.

Steve? Have you been ale to stop the flickering after a restart of the computer?


@Derron: What is this SDL-stuff?

another question could a Flip 1 instead of a Flip 0 help?
...on the way to Egypt

Steve Elliott

#35
Quote
Steve? Have you been ale to stop the flickering after a restart of the computer?

No, but I'm working on updating Big Sur to see if that clears up the problem.

[Edit]
Yes the OS Update cleared the flickering problem.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

Derron

sdl.mod ... you would need to use the framework command then, because else it loads stuff like "brl.SystemDefault", while sdl.mod provides its own "sdl.System". it also provides its own graphics modules SDL.glmax2d, SDL.gl2max2d ...

the SDL version uses different approaches to creating new windows etc - so stuff like multi-screen-setups do not lead to eg "apps being centered across multiple screens".


Nonetheless it would be good to see a barebone code sample which creates the windows similar to yours, painting via events, switching canvases.
This then needs to be checked on Steve's computer - and if others could replicate the issue, then the better (and then ... we could look for a fix).


Regarding "flickers" which is still happening even if your app is closed: it is not your fault. No worries. You wont be able to damage his computer this way. It is the fault of the OS - and whatever the (real) gpu drivers + the OS services are doing there (sparse OpenGL support...?). You are not requesting exclusive full screen stuff, so you wont even change anything like a desktop resolution or so. (remember that in earlier times a fullscreen resolution change + crashed app often lead to the resolution being stuck changed).


bye
Ron

Midimaster

Good to read that Steve could stopp the flickering problems by updating his OsX.

Now it looks like my AURIS app starts as expected also on users computers. Steve could you again test the regular version 1.11 from here:

http://www.midimaster.de/download/AurisOsxBigSur.zip

After closing both licence and demo window you should click on THEME- INTERVALL- LISTENING in the menu. That's all.


@DERRON:

Do you already know how to buid this MAC-conform menu? IWasAdam pointet me to the 6 column menu, but I only created 3 entries. It looks like MAC adds 4 menus by default: APPLE - APP NAME - VIEW - WINDOW

So it comes to this seqence in my AURIS app:

APPLE - AURIS- VIEW - WINDOW - FILE - THEME - OPTIONS

I think in a pure Mac app (reference: finder) the seqence should look like this:

APPLE - AURIS - FILE - THEME - VIEW - WINDOW - HELP
...on the way to Egypt

Derron

Nope I do not "already know how". I only have a Mac Mini to compile my game for Mac. Not using it for anything else yet (and also do not plan to do so).


bye
Ron

Steve Elliott

Well I stopped the flickering to the OS (even after your program was exited) by updating the OS version, but I don't want to risk breaking it again so won't be re-testing, sorry.
Win11 64Gb 12th Gen Intel i9 12900K 3.2Ghz Nvidia RTX 3070Ti 8Gb
Win11 16Gb 12th Gen Intel i5 12450H 2Ghz Nvidia RTX 2050 8Gb
Win11  Pro 8Gb Celeron Intel UHD Graphics 600
Win10/Linux Mint 16Gb 4th Gen Intel i5 4570 3.2GHz, Nvidia GeForce GTX 1050 2Gb
macOS 32Gb Apple M2Max
pi5 8Gb
Spectrum Next 2Mb

iWasAdam

here's what it looks like on bigsur with dark mode...


You can see the UI is all light greys....

Midimaster

Quote from: iWasAdam on July 09, 2021, 10:12:40
here's what it looks like on bigsur with dark mode...
You can see the UI is all light greys....

Thank you for the screenshot. I will improve this after I'm sure to have solutions for all heavy problems. These have first priority at the moment:
- Install problems
- Flickering
- Menu entries
- Open zipped OGG-Sounds
- Strange HTTPS-error message when leaving the app


Much more I would be interested in a look into the main screen: MENU - THEME - INTERVALL- LISTENING

- any flickering?
- do you hear sound when clicking on the yellow buttons?


Quote from: Derron on July 09, 2021, 08:24:26
... I only have a Mac Mini to compile my game for Mac. Not using it for anything else yet ...
Ah, this sounds like you do not need a menu and do not use the MaxGui-Module in your games. Ok. I will try to find out something and report. Also this new MAC MINI will be there only for compiling.

(The old one I use for 24track recordings with my PRESONUS 24.4.2: https://www.youtube.com/watch?v=SyAJinDH-6Y )

...on the way to Egypt

wadmixfm

and it only does this on Big Sur ??

when i install my specdrum 2 app i dont get that issue

i created my install with packages

lee

wadmixfm

ignore me lol

i shot straight to the end and not read any other comment and thought it was because you couldnt install any app with big sur from blitzmax :)

sorry jumped the fence before getting on the horse lol

lee

Baggey

#44
Ignore me too!

Fancy a cup off EARL GREY?

https://youtu.be/eELH0ivexKA

and just another

https://youtu.be/0iRTB-FTMdk

Dernire un

https://youtu.be/80hMEKlLVgQ

Baggey
Running a PC that just Aint fast enough!? i7 Quad core 16GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!