Just some suggestions:
If the problem is not obvious consider profiling your code, so you know what is taking the time.
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b4d48864-22cb-4ec5-ba4e-20cb2926a937o%40googlegroups.com.
Just some suggestions:
- Preload the league screen data, prior to opening the screen, so you not doing the access when it is time critical.
- Load the data on the on_pre_enter event, this way the load will happen prior to the screen transition animation rather than after it.
If the problem is not obvious consider profiling your code, so you know what is taking the time.
From: Mateo Aita
Sent: Wednesday, June 10, 2020 3:27 PM
To: Kivy users support
Subject: [kivy-users] Loading screen (using sqlite in it) after pressingbutton takes too much time
I have a problem in which, depending on the phone, after pressing a button that opens a "league table", you have to wait up to 4 secs to load it. My guess is that it happens because of the database (sqlite) that make the process of changing screen a bit lagged. Any suggestion?
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.
Profiling is described here: https://kivy.org/doc/stable/api-kivy.app.html#profiling-with-on-start-and-on-stop
You could do the profile on just the problem area to better understand what it going on.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/d2329f4b-dd05-472c-a4ec-d13929c9ea1fo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/d2329f4b-dd05-472c-a4ec-d13929c9ea1fo%40googlegroups.com.
Use pstats to process the file, and print the results.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b6a60e85-53f6-401d-9a30-af79282f722fo%40googlegroups.com.