PB 6.30 Beta 4 - ScreenGadget library - bug report

Post bugreports for the Windows version here
User avatar
pf shadoko
Enthusiast
Enthusiast
Posts: 434
Joined: Thu Jul 09, 2015 9:07 am

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

Post 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)
PeDe
Enthusiast
Enthusiast
Posts: 330
Joined: Sun Nov 26, 2017 3:13 pm

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

Post by PeDe »

The output is: 986

Peter
User avatar
pf shadoko
Enthusiast
Enthusiast
Posts: 434
Joined: Thu Jul 09, 2015 9:07 am

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

Post 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.
User avatar
mk-soft
Always Here
Always Here
Posts: 6421
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post 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.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply