What is the maximum amount of property bindings?
-
I try to follow the key concepts presented here
basically he said to size your components based on parent all the time, no hardcoding width/ height...So i Was wondering what is the maximum amount of property bindings for a normal hardware in order to get a normal fps rate, (assuming all of them emit the changed signal at the same time)? also lets assume the worse case that they are all qml var properties
-
@JKSH Its not about profiling as there are many more stuff happening in a app than binding, like networking, computing etc.., I asked if this constrain of using only binding in your app for items size is a good way to go or you will pay the debt as your app start scale.
@NYBL said in What is the maximum amount of property bindings?:
I asked if this constrain of using only binding in your app for items size is a good way to go or you will pay the debt as your app start scale.
Using bindings for sizes is generally fine.
There is a minor performance cost in bindings, but for most applications this cost is not an issue especially since it greatly reduces the development cost, compared to using alternative methods.
If you are concerned about absolute performance of bindings, follow this ticket: https://bugreports.qt.io/browse/QTBUG-82447
-
I'm not sure about normal fps. There is no limit on property bindings.
-
@NYBL said in What is the maximum amount of property bindings?:
I want to make sure that my app would be swift
To achieve this, profile your code to see how to optimize it.
-
@NYBL said in What is the maximum amount of property bindings?:
I want to make sure that my app would be swift
To achieve this, profile your code to see how to optimize it.
@JKSH Its not about profiling as there are many more stuff happening in a app than binding, like networking, computing etc.., I asked if this constrain of using only binding in your app for items size is a good way to go or you will pay the debt as your app start scale.
-
@JKSH Its not about profiling as there are many more stuff happening in a app than binding, like networking, computing etc.., I asked if this constrain of using only binding in your app for items size is a good way to go or you will pay the debt as your app start scale.
@NYBL said in What is the maximum amount of property bindings?:
I asked if this constrain of using only binding in your app for items size is a good way to go or you will pay the debt as your app start scale.
Using bindings for sizes is generally fine.
There is a minor performance cost in bindings, but for most applications this cost is not an issue especially since it greatly reduces the development cost, compared to using alternative methods.
If you are concerned about absolute performance of bindings, follow this ticket: https://bugreports.qt.io/browse/QTBUG-82447