Search found 29 matches

by asrael
Sun Jan 20, 2019 4:26 pm
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

I tried your example on my A1200/060/P96 machine, and didn't notice any delays. The two lines printed instantly when I clicked around. Yeah, exactly. The delay doesn't exist on non vampire machines. See some posts earlier: "OK, Tested on an A1200 with ACA card. Seems like the delay is not present t...
by asrael
Sat Jan 19, 2019 10:20 pm
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

I have build a basic C program (on Vampire machine) that creates a window and waits for IDCMP_MOUSEBUTTONS (SELECTUP/SELECTDOWN) events.
But I couldn't see any delays there.

What else can I do to troubleshoot?


Manfred
by asrael
Fri Jan 18, 2019 11:49 pm
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

Before I bother the Apollo guys I'll put together a simple POC trying to replicate this using plain C.
Vacation is over, time is more tight again.

Manfred
by asrael
Tue Jan 08, 2019 7:53 pm
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

OK, can you elaborate a bit on how the this function works in lower levels?


Manfred
by asrael
Tue Jan 08, 2019 10:49 am
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

OK, Tested on an A1200 with ACA card.
Seems like the delay is not present there.


Manfred
by asrael
Sat Jan 05, 2019 10:51 pm
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

This is on two Vampirized systems. A600 and A2000. Pretty much stock otherwise, previously 3.9, now 3.1.4.
I'll give it a try on a few more none Vampire systems.


Manfred
by asrael
Sat Jan 05, 2019 7:19 pm
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

I'm doing a mouse button click - press, and immediately release.
I've just tested again and the delay varies. But it's 2-4 seconds.
Which feels like an eternity.
On MorphOS there is no such delay.


Manfred
by asrael
Fri Jan 04, 2019 10:14 am
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

Re: WaitLeftMouse takes 4 seconds to react on m68k

It's pretty simple. I've stripped it down to this: /* Some @Xyz setup. Most notably: */ @DISPLAY { Title = "", Width = 400, Height = 460, Color = #BLUE } Repeat DebugPrint(GetDate(#DATELOCAL), "Waiting for left mouse...") WaitLeftMouse DebugPrint(GetDate(#DATELOCAL), Left mouse pressed."); Forever A...
by asrael
Wed Jan 02, 2019 1:20 pm
Forum: General programming
Topic: WaitLeftMouse takes 4 seconds to react on m68k
Replies: 15
Views: 432

WaitLeftMouse takes 4 seconds to react on m68k

Hi.

I have a small program. In the main loop it waits for 'WaitLeftMouse'.
There is a debug log before and after with timing.
Sometimes, or actually most of the time when I click in the window it takes ~4 seconds until the 'WaitLeftMouse' wakes up.
Any idea what's wrong there?


Manfred
by asrael
Mon Sep 17, 2018 9:35 am
Forum: General programming
Topic: OOP framework
Replies: 26
Views: 1627

Re: OOP framework

Article that might be worth reading, or then not. https://medium.com/@cscalfani/goodbye-object-oriented-programming-a59cda4c0e53 Neither OO nor FP is the magic bullet. And then OO is not equal to OO. There are many additional concepts and implementations which try to eliminate the weak spots of OO....