kizitonwose / Calendar

A highly customizable calendar view and compose library for Android and Kotlin Multiplatform.
MIT License
4.65k stars 504 forks source link

VerticalYearCalendar scrolling performance issue #588

Open zeroarst opened 2 days ago

zeroarst commented 2 days ago

Library information:

Describe the bug**

When using the VerticalYearCalendar, scrolling exhibits noticeable low frame rates (FPS).

To Reproduce (if applicable)

Note: I tested this on a Samsung S23 Ultra, so hardware limitations should not be a factor.

Expected behavior (if applicable)

Smooth scrolling on VerticalYearCalendar.

Screenshots? (if applicable)

In the example list, scrolling is relatively smooth, but this is not the case with the VerticalYearCalendar. You can view the comparison here: https://imgur.com/a/pv8g4mN

Additional information

a7asoft commented 2 days ago

@zeroarst Have you been able to solve this issue? I'm experiencing the same thing but in view module.

zeroarst commented 2 days ago

@a7asoft No, I just posted it today. I tried setting monthColumn to 2 and used a simple Text composable in dayContent without an additional Box wrapper. It seems to slightly improve performance, but I'm not completely certain.