Recent

Author Topic: UTC Time question  (Read 3479 times)

TRon

  • Hero Member
  • *****
  • Posts: 536
Re: UTC Time question
« Reply #75 on: August 10, 2020, 07:56:21 am »
Do you think we should use LazOpenGLContext? I'm afraid BGRABitmap is not optimize for performance.
Hmz.. that could perhaps be an option.

To put things more in context, I seem to remember a thread here on the forums where someone asked about performance of his game. Another user tested that for him on a pi (Also a pi3 if I remember correctly) and seem to have concluded that the raspbian desktop is not using accelerated drivers.

SO, how much is to blame on bgrabitmap is difficult to tell. I have no idea if it is worth the effort, as this is a pretty out of the ordinary setup to begin with.

What do you think handoko ?

Handoko

  • Hero Member
  • *****
  • Posts: 3902
  • My goal: build my own game engine using Lazarus
Re: UTC Time question
« Reply #76 on: August 10, 2020, 08:05:29 am »
Tonight, I will try to optimize code.

Common flicker issues usually can be solved by painting all the items in one single pass. I will try to modify the code without using panels and then draw all the clocks in a buffer then put it on the screen.

But if the flicker only happens when resizing, I think we can temporary disable the drawing routine when it detect the resizing event.

I will investigate this problem later.
« Last Edit: August 10, 2020, 08:11:56 am by Handoko »

JLWest

  • Hero Member
  • *****
  • Posts: 914
Re: UTC Time question
« Reply #77 on: August 10, 2020, 08:09:27 am »
@handoko I running you clock demo.

i make a png of what I have in mind.

FPC 3.2.0, Lazarus IDE v2.0.4
 Windows 10 Pro 32-GB
 Intel i7 770K CPU 4.2GHz 32702MB Ram
GeForce GTX 1080 Graphics - 8 Gig
4.1 TB

Handoko

  • Hero Member
  • *****
  • Posts: 3902
  • My goal: build my own game engine using Lazarus
Re: UTC Time question
« Reply #78 on: August 10, 2020, 08:10:00 am »
i make a png of what I have in mind.

Good.

Handoko

  • Hero Member
  • *****
  • Posts: 3902
  • My goal: build my own game engine using Lazarus
Re: UTC Time question
« Reply #79 on: August 11, 2020, 07:53:35 pm »

 

TinyPortal © 2005-2018