To be honest, the YOURS route finding is very bad, I need to find a replacement for it, the openrouteservice looks nice but I guess to really use it I have to host it myself.
Besides that I’m working on PNG export for MUIMapparium and also export the Route as HTML with the overview (just the current view of window).
After a long time I decided that MUIMapparium has enough bugfixes and improvements to make a new release.
The biggest changes are the Manual, the faster network speed, an about window and route calculation.
BugFix: OS4 ToolType reading
BugFix: Track plot enabling
BugFix: Deleting Tiles
Amiga Guide manual
About MUI Menu Entry
Reopen Statistics Window on start if left open on quit
Set color for Tracks and Routes
Show Route Orders jump to position
Block redrawing when moving map (prevents map jumping)
I was working on the route creation, sadly it seems the OpenLS is not available anymore for routing, so only YOURS is left. Thats a little bit pity because YOURS calculate nicely the route and orders for it, but sadly it does not show where the orders take place. (OpenLS did that, even there the route calculation was a little bit odd sometimes, thats teh reason I supplied both in Mapparium).
Nevertheless, it works now with YOURS for now, need a little bit more tweaking (especially to get the start/end point from current map center for example)
The search I managed now to put into a PopObject, if you type the search press enter or search button it will do a search (like the main search) and open the popup with the list of results a double click on an entry set it as start/stop point
Traveling is nice, but also nice to be back. As wrote in he travel blog entry I worked on the MUIIDE, especially on the Menu creating stuff, which is quiet difficult things, but prepares other stuff to come (like listview and lists). You can create now very easily Menus with Submenus with the IDE.
There seems to be a little bug, sometimes when I change a combobox active entry, the GUI does not follow it. I debugged it a little bit, and it seems like and updating problem, because after resizing the window everything seems to be normal. Needs some more investigation.
I’m currently on travel in Hong Kong, China and South Korea. I bought a PowerBook to take with me as my only Computer (+ mobile phone of course). The plan was to work a little bit on the free time on the MUIIDE and try MorphOS on the daily use.
Now some time is passed and it worked rather nicely. I had some problems in China to connect to the WLAN access point (it somehow worked but very slow). I switched to mobile phone 3G/4G WLAN sharing (iPhone) to MorphOS which works nicely. In South Korea and Hong Kong the WLAN in Hotel works flawlessly. Now it’s common that every Hotel room has it’s own WLAN access point in the room. If you often switch the Network it’s a little bit trouble, because sometimes the Network will go down when then WLAN disappears but will not come up again if it appears again (or an other known one). Even go to Network settings and force to the new WLAN does not help, but after a Restart of the Computer everything is fine.
Basically that’s the only problem I noticed, everything else works nicely. listing music with Digital Audio Player, Check emails via OWB or SimpleMail, Check my servers via SSH, Watch movies with MPlayer (via from USB Stick) writing code with Scribble, compile with FPC 😉 handle git with MoGit and git, surf Web with OWB (shows nicely chinese characters) and of course write this Article with image upload ;-). Overall not bad certainly daily use compatible for my usecases.
Finally I got it working saving and loading also works now for events, as I described before I had to relocate the complete Eventhandler routine to make that possible (in an abstract way).
Now it’s also possible to add multiple Windows. (But only the first one is open by default), I have to think about how to solve it, but of course you can open the other Windows in the OnShow Event of the MainWindow. Or as I show in the Video on Button Press.
A little demonstration (featuring “awesome drawing skills” icon 😉 ):
Notice to me, stop Delitracker before recording, or the mouse pointer whips with the Music 😉
After that is finished I guess the next one will be properties which are other classes, like Menu or List at the ListView.
I also have some ideas how to deal with special Values (like the Window inital position, MUIV_Window_LeftEdge_Centered and so on) but this will need a little bit more thinking and of course much work 😛 .
Back to topic, after this little Vampire excursion, I continued working on MUIIDE especially the loading and saving, atm. I just save/load a project file which is a simple XML very easy for Trees to handle in XML and also can save nearly every content. But of course with this it will be not possible to export the source code and reload it to add an additional item… especially if you changed the source. It will be very difficult to make that happen, of course Lazarus does this… but Lazarus is a code monster difficult to dig out how this is done and maybe thats even not transferable to my code. I’m not sure what to do here.
Loading and saving for the properties is already finished and working well, but at this position I noticed that I did the eventhandler keeping wrong this way I can not save them to the project file, seems need some more thinking.
After that is finished I will try to add class properties, like Menu (Window), List (on a ListView) and so on Also thinking about to make the project multi window compatible, so that it really can hold the complete application not just a window, then the root of my Tree should be application and not Window.
I just found out you can turn off the FPU with “VCONTROL FP=0” sometimes it work, sometimes not (just crashing, if this because of my sloppy power on the Vampire or just bad timing, who knows). But after it you can start FEmu as with 2.5 and the testcodes work again. Also MUIMapparium FPU Version is working :-D.
In principle that would be the better alternative to the current situation, implement single precision inside the FPGA and trap the rest, which can then be covered by FEmu. Would make Quake and Demos and so on fast, but would not violate the IEEE 754.
In the current situation Amiga (Vampire) is not anymore IEEE 754 compliant. The Double format is now something like 24 bits significant (like IEEE Single) with 11 bits exponent (like IEEE double) because it can still go to 1e308 but the significant precision is much lower as shown before. Also strange if you multiply two big numbers to produce an overflow for example 1e200 * 1e200 in double precision that would give “+Inf” or an exception, but Vampire FPU shows 1.8e+308 (something close to the max Double Value) and you can continue to calculate with that.
I played a little bit more with the Vampire FPU the yesterdays example shows an other interesting effect, the calculation of a * 1.3 shows an incorrect result. There is some problem in the last places when comparing with 68882 A1200 or 68060 UAE.
Let’s dig a little bit deeper into that, test how well the double precision calculation works. MUIMapparium needs Double precision everywhere, I tested to make it single but the calculation really get very wrong results (Eiffel tower somewhere near London, such stuff). To test double precision we multiply a very small value to 1 very often to see if it correctly handle the bits. for example like this:
b := 1;
for i := 1 to 100000 do
b := b * 1.0000000001;
as you can see we multiply the 1 in b with 1 and a very little bit more, and this little bit more is just over the single precision limit. How the result look like:
Amiga 1200 68882
ehm.. no Vampire thats wrong. Seems it does calculate all FPU calculations in single precision, so even they repair the rounding problem MUIMapparium still would be not usable.
Btw. I tried the same thing with the FEmu back in the days and it worked, as expected.
So maybe thats also the reason for the very good benchmark results… you make the calculations in single instead of double of course you can be much faster (and the original 68k FPUs calculate everything in extented so even more precise). I really think about to go back to Gold 2, it was slower but reliable.
As always the downloads: TestFPU3, TestFPU3.pas