Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
MapViewer is LAGGY
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
IRC channel
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
splitting an image
by
TRon
[
Today
at 09:40:23 am]
how to tweek fpmake to co...
by
paule32
[
Today
at 08:23:49 am]
Why isn't TTIRadioGroup's...
by
egsuh
[
Today
at 08:09:35 am]
FpDebug questions
by
440bx
[
Today
at 03:43:41 am]
Lazarus for Windows on aa...
by
Wallaby
[April 23, 2024, 11:46:56 pm]
Parameter passing odditie...
by
KodeZwerg
[April 23, 2024, 11:04:39 pm]
Can function be used for ...
by
jamie
[April 23, 2024, 10:53:10 pm]
(Solved) TIndexedAVLTree ...
by
lainz
[April 23, 2024, 10:49:03 pm]
Demo Scene Picture sinwav...
by
KodeZwerg
[April 23, 2024, 10:26:21 pm]
fkInternalCalc
by
zraja
[April 23, 2024, 09:31:07 pm]
A fairly simple sound sol...
by
KodeZwerg
[April 23, 2024, 09:23:37 pm]
add new targets to make
by
marcov
[April 23, 2024, 08:38:42 pm]
Quirky windows
by
ASerge
[April 23, 2024, 07:07:16 pm]
[Request] Demo Scene Sub ...
by
Gigatron
[April 23, 2024, 06:29:39 pm]
Unlocking Files
by
KodeZwerg
[April 23, 2024, 06:03:08 pm]
[SOLVED] trunk bug for mi...
by
Key-Real
[April 23, 2024, 05:56:32 pm]
Demo Scene Bitmap Font Sc...
by
Gigatron
[April 23, 2024, 05:56:27 pm]
Compile/Convert Delphi pr...
by
Martin_fr
[April 23, 2024, 05:43:11 pm]
Generics - correct syntax
by
Thaddy
[April 23, 2024, 05:40:59 pm]
InstallAware Using Lazaru...
by
msintle
[April 23, 2024, 05:26:36 pm]
Xcode Command Line Tools ...
by
Joseph
[April 23, 2024, 05:16:39 pm]
Offical launch of the 1 B...
by
Hartmut
[April 23, 2024, 04:49:29 pm]
what to do if my target M...
by
nickysn
[April 23, 2024, 04:16:02 pm]
compiler error in unit
by
paule32
[April 23, 2024, 03:49:50 pm]
Multithreading - synchron...
by
mika
[April 23, 2024, 01:48:51 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: MapViewer is LAGGY (Read 2968 times)
Awesome Programmer
Sr. Member
Posts: 451
Programming is FUN only when it works :)
MapViewer is LAGGY
«
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
«
Last Edit: March 12, 2019, 09:06:57 pm by Awesome Programmer
»
Logged
http://cool-technology.blogspot.com
wp
Hero Member
Posts: 11923
Re: MapViewer is LAGGY
«
Reply #1 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).
Logged
Awesome Programmer
Sr. Member
Posts: 451
Programming is FUN only when it works :)
Re: MapViewer is LAGGY
«
Reply #2 on:
March 13, 2019, 12:09:19 am »
I didn't know that... I thought KcmMapviewer uses TMapViewer. Okay, I will try the TMapViewer... thanks.
Logged
http://cool-technology.blogspot.com
Awesome Programmer
Sr. Member
Posts: 451
Programming is FUN only when it works :)
Re: MapViewer is LAGGY
«
Reply #3 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.
«
Last Edit: March 13, 2019, 03:22:20 pm by Awesome Programmer
»
Logged
http://cool-technology.blogspot.com
Windsurfer
Sr. Member
Posts: 368
Re: MapViewer is LAGGY
«
Reply #4 on:
March 13, 2019, 03:35:20 pm »
Check you have LCLType and LCLIntf in your uses clause.
Logged
wp
Hero Member
Posts: 11923
Re: MapViewer is LAGGY
«
Reply #5 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
.
The original work was by Maciej Kaczkowski which led to kcMapViewer (sources now at
https://github.com/maciejkaczkowski/mapviewer
).
In reply #44 user ti_dic improved the component by adding massive thread support and faster graphics using the package rgb_graphics; the original sources can be found at
https://sourceforge.net/p/roadbook/code/ci/master/tree/mapviewer/
.
And there are the CodeTyphon versions (pl_geogis, pl_mapviewer) which add to the confusion...
Later, I found this thread and decided to take the best out of both both version and make it available on lazarus ccr as "lazMapviewer":
https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/lazmapviewer/
. It removes RGBGraphics again and uses LazIntfImage instead. RGBGraphics, however, can be reactivated by a conditional define. Unfortunately this version is not yet complete. It works on Windows, but has a thread-related memory leak. On Linux I just noticed that there seems to be an issue with LazIntfImage used instead of RGBGraphics leading to severe crashes. I do not see crashes with RGBGraphics.
As for your compilation issue: I cannot confirm this on Linux /gtk2 when I use the RGBGraphics distributed via online package manager.
Logged
ps
Full Member
Posts: 136
Re: MapViewer is LAGGY
«
Reply #6 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.
Logged
Small simple CSS/box model implementation:
https://github.com/pst2d/csscontrols/tree/dev
Awesome Programmer
Sr. Member
Posts: 451
Programming is FUN only when it works :)
Re: MapViewer is LAGGY
«
Reply #7 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.
Logged
http://cool-technology.blogspot.com
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
MapViewer is LAGGY
TinyPortal
© 2005-2018