Comments (2)
There are 3 kinds of those effects. All of them received large performance improvements in v1.9 so make sure you have at least that version.
1. Ripple Effect
Appears on click (e.g. for buttons). Docs can be found at https://benruehl.github.io/adonis-ui/pages/ripple. It would surprise me if that one causes performance problems. Maybe for very large controls. But as one can only click on one control at a time, the effect is never rendered multiple times in parallel or something. It cannot really be disabled in the sense of taking it out of the visual tree but it can be kind of deactivated in 2 ways. FIrst is setting its duration to 0 so that there is no animation anymore making it look like a normal color change on click. The other is to set its background color to transparent so that the effect is simply not visible.
2. Cursor Spotlight
This is the effect being seen when hovering over buttons, text boxes, listbox items, etc. Docs are over here at https://benruehl.github.io/adonis-ui/pages/cursor-spotlight. This one is still limited to single controls (or small groups of controls in some cases, e.g. menu items). But the performance implications might be higher for this one as it is rendered on every mouse move event instead of just mouse clicks. To disable it, almost the same rules apply as for the ripple effect meaning that it cannot be removed from the controls. But the color can be set to transparent or its size can be set to 0. Additionally the blur radius can be reduced which makes the effect less smooth but it might result in slightly better performance on slow systems (although I did not really feel a difference).
3. Progress Animation
This one is exclusive to progress bars. It looks like the ripple effect but is not triggered by a mouse click but instead is always active for determinate progress bars as long as they are not disabled. Docs are at https://benruehl.github.io/adonis-ui/pages/loading. This effect really has the potential to drain performance in case many progress bars are rendered at the same time. That's why it has an actual option to disable it which takes it out of the visual tree so that it is not processed at all. It can be set using the ProgressBarExtension
and its IsProgressBarAnimationEnabled
property as stated in the docs.
Hope this helps. In case there is still something you are missing in the docs or you find is not clearly expressed, I am open to feedback. Maybe I will create a page about performace based on this answer.
from adonis-ui.
As there has not been any activity here for a while, I assume that all questions have been answered and will close this issue now.
from adonis-ui.
Related Issues (20)
- Ribbon control
- RippleHost causing MemoryLeaks HOT 1
- About the select page
- Change accent color at runtime
- center window don't work HOT 1
- MessageBox result closes application HOT 3
- Remove red border around button content when using data validation HOT 4
- AdonisWindow // Hide all buttons property
- Text wrapping for watermark
- AdonisWindow not getting garbage collected HOT 2
- Adonis UI alternative for Avalonia? HOT 1
- Questions HOT 2
- Extend style of control styled with Classic Theme? (.NET 7) HOT 1
- Setting ResizeMode "CanResizeWithGrip" on the window removes Adonis title bar
- Resource not found; ResourceKey='TargetType=AdonisUI.Brushes ID=Layer0BorderBrush'
- visual studio 2022 xaml designer not showing adonisControls:AdonisWindow HOT 2
- Cannot add AdonisUI Custom Components from Toolbox or it's not seen xaml code?
- Add Expander control style HOT 1
- [Support request] AdonisUI styling not applying to codebehind-generated control? HOT 1
- Memory leak to AdonisWindow from HandleTitleBarActualHeightChanged
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adonis-ui.