Page 3 of 3

Re: PB 6.30 Beta 4 - ScreenGadget library - bug report

Posted: Thu Dec 11, 2025 7:49 pm
by pf shadoko
@PeDe
may be, flipbuffer don't work correctly
please run this code and give me the debug

Code: Select all

InitSprite():InitMouse():InitKeyboard()
OpenWindow(0,0,0,800,600,"",#PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0),0,0,800,600)
CreateSprite(0,128,128)
StartDrawing(SpriteOutput(0))
Circle(64,64,64,$ff)
StopDrawing()

t=ElapsedMilliseconds()
For i=1 To 60
  While WindowEvent():Wend
  ExamineMouse()
  ExamineKeyboard()
  ClearScreen(0)
  DisplaySprite(0,MouseX()-64,MouseY()-64)
  FlipBuffers()
Next

Debug (ElapsedMilliseconds()-t)

Re: PB 6.30 Beta 4 - ScreenGadget library - bug report

Posted: Thu Dec 11, 2025 8:39 pm
by PeDe
The output is: 986

Peter

Re: PB 6.30 Beta 4 - ScreenGadget library - bug report

Posted: Fri Dec 12, 2025 10:24 am
by pf shadoko
That makes sense.
Submit a bug report.
(Fred already told me about a problem with the mouse library on Linux.)
As for the compilation issues, I'll talk to him about it.

Re: PB 6.30 Beta 4 - ScreenGadget library - bug report

Posted: Fri Dec 12, 2025 12:51 pm
by mk-soft
I run Linux as a virtual machine under Parallels (macOS)
Here the MouseDeltaX/Y function also causes problems and is very inaccurate. Thus, all examples with MouseDelta run very badly.
MouseX/Y work well

P.S.
It looks like ScreenGadget Library is used internally for Mouse position MouseDeltaX/Y. Otherwise the problem would not be.
Is it so and why. If necessary, use MouseX/Y absolute position.