July 26, 2021, 14:43:13

Author Topic: Installing a BlitzMax App on user MAC  (Read 698 times)

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3143
  • elgol developer
Re: Installing a BlitzMax App on user MAC
« Reply #30 on: July 08, 2021, 10:23:29 »
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!

« Last Edit: July 08, 2021, 10:40:59 by Steve Elliott »
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, BBC B, C64, ZX Spectrum

Offline Derron

  • Hero Member
  • *****
  • Posts: 3613
Re: Installing a BlitzMax App on user MAC
« Reply #31 on: July 08, 2021, 10:51:07 »
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

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3143
  • elgol developer
Re: Installing a BlitzMax App on user MAC
« Reply #32 on: July 08, 2021, 10:57:13 »
My mac was working perfectly fine before BlitzMaxNG screwed it up!   >:(
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, BBC B, C64, ZX Spectrum

Offline Midimaster

  • Sr. Member
  • ****
  • Posts: 329
    • Midimaster Music Education Software
Re: Installing a BlitzMax App on user MAC
« Reply #33 on: July 08, 2021, 12:06:17 »
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
  1. SuperStrict
  2.  
  3. Import koriolis.zipstream
  4. Import BaH.RtMidi
  5. Import MaxGUI.Drivers
  6.  
  7. ' my own code sources:
  8. Include "AurisFunktionen.bmx"
  9. Include "AurisKonstanten.bmx"
  10.  
  11. Include "AurisAudio.bmx"
  12. Include "AurisIntervall.bmx"
  13. Include "AurisAkkorde.bmx"
  14. Include "AurisMDI.bmx"
  15. Include "AurisLaden.bmx"
  16.  
  17. Include "AurisAssi.bmx"
  18. Include "AurisMelodie.bmx"
  19. Include "AurisPara.bmx"
  20. Include "Tastatur.bmx"
  21.  
  22. ' codes sources over all my projects:
  23. Include "../Gemeinsam\Lizenz.bmx"
  24. Include "../Gemeinsam\LizenzenDemo.bmx"
  25. Include "../Gemeinsam\Klassen.bmx"
  26.  
  27.  
  28. AppTitle="Auris"
  29.  
  30. Incbin "DATEN.ZIP"
  31. SetzePfade
  32. DatenPfad="ZIP::Incbin::DATEN.ZIP//"
  33. KopiereAppDateien
  34.  
  35. Lizenz.VersionsString="1.10"
  36.  
  37. If DatenPfad.Contains("::")
  38.         IniClass.Schreiben "","Allgemein", "LastStart", CurrentDate() + " " + CurrentTime()
  39. EndIf
  40.  
  41. ' language:
  42. Global Language:TMaxGUILanguage[9] , AktSprache%=1
  43.         SprachLoader 0,"english"
  44.         SprachLoader 1,"deutsch"
  45.         SprachLoader 2,"czech"
  46.         SprachLoader 3,"new"
  47.         SetLocalizationMode(LOCALIZATION_ON|LOCALIZATION_OVERRIDE)
  48.         SetLocalizationLanguage Language[AktSprache]
  49.  
  50. DatenLaden
  51. MDI.FormLoad    ' loads Main- Window (here only menu and one canvas)
  52. InfoFenster.FormLoad
  53. Lizenz.Formload
  54.  
  55. If Lizenz.Ok()>0
  56.         ShowGadget Lizenz.Window
  57.         DisableGadget MDI.Window
  58. EndIf
  59.  
  60. KopiereStdDateien
  61. LektionenBrowser.FormLoad
  62. LektionenAssistent.FormLoad
  63.  
  64. DemoWindow.StartUp()
  65. ChangeWindowTitle()
  66.  
  67. ErstelleAntwortButtons()
  68. Noten.CreateIt 450,280,330,200
  69. KlavierTyp.Create
  70. MonoChord.Create
  71. AktInstrument=IniClass.Value("","Allgemein", "Instrument")
  72.  
  73. CreateTimer 60
  74.  
  75. SpielMode=KEIN_SPIEL 'FINDE_INTERVALL
  76. Sichtbar 0,0,0,0,0
  77. SeedRnd MilliSecs()
  78.  
  79. AllesBeiResizeWindow
  80. While WaitEvent()
  81.    Select EventID()
  82.         Case EVENT_KEYDOWN
  83.      .....
  84.  


See my current project on PlayStore: 20Tracks-Audio-Player https://play.google.com/store/apps/details?id=midimaster.twentytrackd

Offline Midimaster

  • Sr. Member
  • ****
  • Posts: 329
    • Midimaster Music Education Software
Re: Installing a BlitzMax App on user MAC
« Reply #34 on: July 08, 2021, 12:13:54 »
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?
« Last Edit: July 08, 2021, 12:20:29 by Midimaster »
See my current project on PlayStore: 20Tracks-Audio-Player https://play.google.com/store/apps/details?id=midimaster.twentytrackd

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3143
  • elgol developer
Re: Installing a BlitzMax App on user MAC
« Reply #35 on: July 08, 2021, 12:34:55 »
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.
« Last Edit: July 08, 2021, 13:57:24 by Steve Elliott »
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, BBC B, C64, ZX Spectrum

Offline Derron

  • Hero Member
  • *****
  • Posts: 3613
Re: Installing a BlitzMax App on user MAC
« Reply #36 on: July 08, 2021, 13:24:56 »
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

Offline Midimaster

  • Sr. Member
  • ****
  • Posts: 329
    • Midimaster Music Education Software
Re: Installing a BlitzMax App on user MAC
« Reply #37 on: July 09, 2021, 08:21:41 »
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
 
See my current project on PlayStore: 20Tracks-Audio-Player https://play.google.com/store/apps/details?id=midimaster.twentytrackd

Offline Derron

  • Hero Member
  • *****
  • Posts: 3613
Re: Installing a BlitzMax App on user MAC
« Reply #38 on: July 09, 2021, 08:24:26 »
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

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3143
  • elgol developer
Re: Installing a BlitzMax App on user MAC
« Reply #39 on: July 09, 2021, 10:04:22 »
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.
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry Pi 400, Pi4, BBC B, C64, ZX Spectrum

Offline iWasAdam

  • Hero Member
  • *****
  • Posts: 2343
Re: Installing a BlitzMax App on user MAC
« Reply #40 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....

Offline Midimaster

  • Sr. Member
  • ****
  • Posts: 329
    • Midimaster Music Education Software
Re: Installing a BlitzMax App on user MAC
« Reply #41 on: July 09, 2021, 12:49:32 »
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?


... 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:
)

See my current project on PlayStore: 20Tracks-Audio-Player https://play.google.com/store/apps/details?id=midimaster.twentytrackd

Offline wadmixfm

  • Full Member
  • ***
  • Posts: 129
Re: Installing a BlitzMax App on user MAC
« Reply #42 on: July 10, 2021, 14:48:24 »
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

Offline wadmixfm

  • Full Member
  • ***
  • Posts: 129
Re: Installing a BlitzMax App on user MAC
« Reply #43 on: July 10, 2021, 14:51:56 »
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

Offline Baggey

  • Full Member
  • ***
  • Posts: 135
Re: Installing a BlitzMax App on user MAC
« Reply #44 on: July 17, 2021, 00:21:54 »
Ignore me too!

Fancy a cup off EARL GREY?



and just another



Dernire un



Baggey
« Last Edit: July 17, 2021, 00:48:48 by Baggey »
Currently Running a PC that just Aint fast enough!?
ZX Spectrum 48k, NEXT, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip.

Jesus was only famous because of his DAD.

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal