Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    apparently slow eventCanvas rendering on touch device

    SmartClient Version: SNAPSHOT_v13.1d_2024-10-16/AllModules Development Only (built 2024-10-16)

    Safari on iOS (iPhone 8 physical device)

    Hello, I noticed that the rendering of events on my iPhone 8 (and also on the Xcode simulator with my MacBook Pro Intel Core i7) seems a bit slow:
    https://youtube.com/shorts/q0Jan27Sj_o?feature=share
    I think this is because it actually doesn't render until the scrolling "stops", so it's actually an optimization.

    I believe the correct way to avoid this effect is by setting renderEventsOnDemand: false, is that right?
    Are there any drawbacks considering in my case it's only a handful of events per day?

    #2
    hi Claudio,

    Yes, renderEventsOnDemand: true causes the view to create/recycle and/or render canvases only for the events visible in the current viewport when the range changes - those events initially scrolled out of view are rendered after being scrolled into view.

    If you set renderEventsOnDemand to false, it will render all of the view's events up-front, when data arrives, and not as you scroll around.

    There shouldn't be any other differences or drawbacks, and likely no visible slow-down unless the view is asked to render dozens to hundreds of events up-front.
    Last edited by Isomorphic; 17 Oct 2024, 21:23.

    Comment

    Working...
    X