GrafX2 - speed
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 463 from 2003/7/26
    From: Wroclaw/Poland
    I have a strange problem with GrafX2 on my PowerBookG4 with MorphOS 3.17.
    If I try to use "Pick brush" (press key B), the application works veeeeery slow. Too slow for cut a brush. When I move mouse, horizontal and vertical lines move terribly slow.
    If I turn on a zoom (press key M) and move mouse quickly, the application also works slow, position of the mouse is updated with very low frequency.

    I would like to know if this problem occurs only on my system/device. Could someone check if is able to reproduce the problem?
  • »11.05.22 - 18:33
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    i confirm that, same here, working but slow...
    mmmm, not sur if SDL2 bug or app bug.
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »11.05.22 - 20:26
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 565 from 2004/4/15
    Hm, strange, since the last 2 or 3 versions of sdl I recognized the same problems with Ermentrud.
    I compiled Ermentrud with new versions of SDL2 and in fullscreen mode everything is totally
    slow an d eats 100% of the cpu. No matter if I use software or ogl rendering.
    In window mode everything is ok.
    I wanted to report this a while ago, but did not find the time yet or investigate this a little bit more.

    But good news is that Ermentrud works with ogl now on mos.
    regards
    eliot
  • »11.05.22 - 21:35
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    @eliot, here, i think it's not smae problem
    but have you try with last SDL2.0.22 (https://www.morphos-storage.net/?id=1746996) ?
    (if same problem)

    And warning, now SDL2 support SDL_FULLSCREEN_DESKTOP:
    https://github.com/timoinutilis/inga-sdl/blob/7b73df0ef16d1bb73868108574a15171fa353a78/sources/main.c#L99

    If use this flags, window take fullscreen of Ambient and not real screen.
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.05.22 - 06:26
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 463 from 2003/7/26
    From: Wroclaw/Poland
    Quote:

    beworld wrote:
    i confirm that, same here, working but slow...
    mmmm, not sur if SDL2 bug or app bug.

    Thank you for the confirmation. Yes, it may be problem in SDL2.
  • »12.05.22 - 08:56
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    i try to check what the key B doing....
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.05.22 - 11:33
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    I test Windows version... and I notice the same problem
    but my PC is too fast, I go from 0.1% CPU to 1.5% when I click the b key
    So I don't think this is a problem with MorphOS SDL2.... hard to say

    [ Edité par beworld 12.05.2022 - 13:07 ]
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.05.22 - 12:06
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 463 from 2003/7/26
    From: Wroclaw/Poland
    Quote:

    beworld wrote:
    I test Windows version... and I notice the same problem
    but my PC is too fast, I go from 0.1% CPU to 1.5% when I click the b key
    So I don't think this is a problem with MorphOS SDL2.... hard to say

    I also use GrafX2 on MacBooks with Intel i5 and ARM M1 (both are 2020). The application works fast enough on both devices. If I press B-key or enable a zoom (M-key), CPU usage doesn't change. With and without pick brush mode CPU usage is about 20% of one core.
  • »12.05.22 - 13:14
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    i test with this version: http://grafx2.gitlab.io/grafX2/
    MorphOS version is same (last GIT Fev 2022)
    Maybe this last version have problem.
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.05.22 - 15:53
    Profile Visit Website
  • MorphOS Developer
    cyfm
    Posts: 537 from 2003/4/11
    From: Germany
    Quote:

    beworld schrieb:
    i test with this version: http://grafx2.gitlab.io/grafX2/
    MorphOS version is same (last GIT Fev 2022)
    Maybe this last version have problem.


    You might have a look at MorphOS SDK's Koprofiler, at least this is a rather useful tool to profile performance of certain code sections, especially if the code is under your control.
  • »12.05.22 - 16:11
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    @cyfm ok i will see how it works, thanks
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.05.22 - 16:32
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    so after some test:
    1. if you force to use SDL_RENDERER_SOFTWARE mode (via menu), no more problem... but software is more slow..
    2. i try to build grafx with SDL1, no problem...
    3. so SDL2 OpenGL renderer seem the problem here... (but no more information for now)

    @cyfm: very cool tool !! but read result is more complex lol
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.05.22 - 18:18
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    eliot
    Posts: 565 from 2004/4/15
    thanks beworld,
    Ermentrud now works on Mos with OpenGl and less cpu usage.
    I used SDL2 from your release yesterday and replaced SDL_WINDOW_FULLSCREEN_DESKTOP with SDL_WINDOW_FULLSCREEN which speeds up everything.

    So it's time for a new release of Ermentrud for Mos!
    regards
    eliot
  • »12.05.22 - 18:44
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    Quote:

    eliot a écrit :
    thanks beworld,
    Ermentrud now works on Mos with OpenGl and less cpu usage.
    I used SDL2 from your release yesterday and replaced SDL_WINDOW_FULLSCREEN_DESKTOP with SDL_WINDOW_FULLSCREEN which speeds up everything.

    So it's time for a new release of Ermentrud for Mos!


    great new !
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »12.05.22 - 18:48
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 463 from 2003/7/26
    From: Wroclaw/Poland
    Quote:

    eliot wrote:
    I used SDL2 from your release yesterday and replaced SDL_WINDOW_FULLSCREEN_DESKTOP with SDL_WINDOW_FULLSCREEN which speeds up everything.


    Is it fix for GrafX2 too?

    I have tried:
    1. SetEnv SAVE SDL_WINDOW_FULLSCREEN,
    2, reboot device,
    3. check inf the flag exists in ENV and ENVARC,
    4. run GrafX2 (withe the latest version of SDL2).

    Unfortunately if I press B-key the speed still is very low.
  • »16.05.22 - 10:54
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    GrafX use SDL_WINDOW_FULLSCREEN so it has nothing to do with your slowdown problem.

    Hard to say where problem is.

    I can send you SDL1 version if you want. (i test it and no problem with b key)
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »16.05.22 - 11:56
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 463 from 2003/7/26
    From: Wroclaw/Poland
    Quote:

    beworld wrote:
    I can send you SDL1 version if you want. (i test it and no problem with b key)

    It would be great if you sent me a SDL1-version of the GrafX2.
    Mail: mdw ((aatt)) amiga . pl
    Thank you very much.
  • »16.05.22 - 13:06
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    beworld
    Posts: 599 from 2010/2/10
    From: FRANCE
    https://www.morphos-storage.net/upload/test/grafx2_sdl1.lha
    IMac G5 2.1,PowerBook G4 1.5,MacMini 1.5, PowerMac G5 2.7 died !!!
    My MOS ports
  • »16.05.22 - 16:59
    Profile Visit Website
  • MDW
  • Order of the Butterfly
    Order of the Butterfly
    MDW
    Posts: 463 from 2003/7/26
    From: Wroclaw/Poland
    Quote:

    beworld wrote:
    https://www.morphos-storage.net/upload/test/grafx2_sdl1.lha

    This version works well. :) Thank you!
  • »16.05.22 - 21:32
    Profile Visit Website