The Connection function can detect whether a device is on a metered connection or if it is connected/disconnected. I have used Connection.Metered in a condition to determine how much data to store locally: mobile phones on cell data would store less data while laptops on wifi would pull down more. It helps it run better.
But not all user laptops benefit from holding more data locally. Fast laptops greatly benefit since they don't have to wait to pull down data all the time, but slow laptops can't handle it.
Does anyone have a way to test the processing power of a device?
Solved! Go to Solution.
Ok, I think I may have thought of a solution
Big idea: set a variable at the start and a new variable at the end of all the loading.
Set(startLoad,Now())
and Set(endLoad,Now())
Load and reload the app on different devices and measure the average load time. Consider having your app record the time it takes to load to a datasource.
Create a toggle bound to whether the time loaded was below or above the average.
Toggle.Default: DateDiff(startLoad,endLoad,Seconds)>averageLoad
If the time it took to load is above average, then implement lighter actions in the app.
When writing formulas that are tied to intensive operations, use the Toggle's value as a condition.
I tested it and it works because Now() is not delayed by lag like a timer control is.
Hi @mr-dang,
Based on what I know, there is no proper methods to deal with that. I think the processing power is a little hard to define, as the workload of the device is mostly depends on the user operations.
@AndyPennell may have some insights on this topic.
Besides, please consider submit this as an idea.
Regards,
Michael
Any new thoughts on this?
@Meneghino posted an idea for signals which I think could also help checking for speed.
I previously tried measuring speed using a timer, but when a slow computer lags, so does the timer.
Ok, I think I may have thought of a solution
Big idea: set a variable at the start and a new variable at the end of all the loading.
Set(startLoad,Now())
and Set(endLoad,Now())
Load and reload the app on different devices and measure the average load time. Consider having your app record the time it takes to load to a datasource.
Create a toggle bound to whether the time loaded was below or above the average.
Toggle.Default: DateDiff(startLoad,endLoad,Seconds)>averageLoad
If the time it took to load is above average, then implement lighter actions in the app.
When writing formulas that are tied to intensive operations, use the Toggle's value as a condition.
I tested it and it works because Now() is not delayed by lag like a timer control is.
User | Count |
---|---|
140 | |
136 | |
77 | |
76 | |
69 |
User | Count |
---|---|
224 | |
186 | |
68 | |
64 | |
57 |