This project is read-only.
1
Vote

Possible toolBar speed improvement

description

Currently the refresh of the toolbar, when something changes, is to:
  1. Destroy the objects
  2. Calculate new positions and attributes
  3. Redraw the objects
Instead, all the objects should get created when they are added, or conversely when they are destroyed, by the programmer and all the refresh logic should be just modifies of the existing objects.

So, the refresh loop changes to:
  1. Calculate new positions and attributes
  2. Update objects thru modify
This should make refreshing much faster when resizing and the like takes place.

I will build the XPListBar this way to work out the kinks.

comments

cjharris02892 wrote Jun 20, 2016 at 8:10 PM

I finished the XPListBar for an initial release with the new logic. Worked great. Create all the objects and leave them. Then everything to redraw is just straight modify calls without DESTROY/CREATE happening over and over. Will definitely release this in a future release.

cjharris02892 wrote Jun 23, 2016 at 2:55 PM

Restructured code in uo_toolBar to mimic uo_XPListBar. This will facilitate the change to increase performance in a future release. Also, makes for much more consistent coding. For now, this is as far as I will go with this enhancement for GA 1.3.

wrote Dec 1 at 8:28 PM