Lazarus

Programming => General => Topic started by: Awesome Programmer on March 12, 2019, 09:04:19 pm

Title: MapViewer is LAGGY
Post by: Awesome Programmer on March 12, 2019, 09:04:19 pm
I am testing Mapviewer and its demo and it is very laggy when you move the map. Is that how it suppose to be? Is there something that can be done to eliminate or  reduce the lagginess of the map when you move it? I made a video file for you to view what I am seeing. Any input will be greatly appreciated. Thanks.

https://drive.google.com/file/d/12Al-04ns1pshrb2G2G5__LJPWuIyi2mo/view?usp=sharing
Title: Re: MapViewer is LAGGY
Post by: wp on March 12, 2019, 11:19:04 pm
This is not the lazmapviewer of https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazmapviewer/ which is certainly faster (although not perfect either).
Title: Re: MapViewer is LAGGY
Post by: Awesome Programmer on March 13, 2019, 12:09:19 am
 :o
I didn't know that... I thought KcmMapviewer uses TMapViewer. Okay, I will try the TMapViewer... thanks.
Title: Re: MapViewer is LAGGY
Post by: Awesome Programmer on March 13, 2019, 03:16:45 pm
 :(
I downloaded the mapviewer you pointed me to and tried to install the package. Compiler is running into an issue... Please have a look at the attached image.

Something about gtkDef.

Thank you.
Title: Re: MapViewer is LAGGY
Post by: Windsurfer on March 13, 2019, 03:35:20 pm
Check you have LCLType and LCLIntf in your uses clause.
Title: Re: MapViewer is LAGGY
Post by: wp on March 13, 2019, 05:35:05 pm
Well, that entire TMapViewer thing may appear confusing. It is all based on this thread: https://forum.lazarus.freepascal.org/index.php?topic=12674.15.
As for your compilation issue: I cannot confirm this on Linux /gtk2 when I use the RGBGraphics distributed via online package manager.

Title: Re: MapViewer is LAGGY
Post by: ps on March 13, 2019, 06:22:36 pm
As I mentioned here https://forum.lazarus.freepascal.org/index.php/topic,12674.75.html problem is with recreating whole screen when position is changed (while mouse move or screen size) not with screen rendering library or thread usage. Thread usage is overkill too (and memory leaks) :) I can look on this only next month.
Title: Re: MapViewer is LAGGY
Post by: Awesome Programmer on March 13, 2019, 07:05:53 pm
I don't have any problem installing the Kcmmapviewer package. In fact, the demo on the video is the demo using KCM. However, I did notice that KCMmapviewer is also using TMapviewer.
TinyPortal © 2005-2018