Computer Science Canada Create an ACTUAL loading screen |
Author: | Jeffmagma [ Sat Jan 09, 2016 3:06 pm ] |
Post subject: | Create an ACTUAL loading screen |
So the ISPs are here, and everyone is trying to make their program fancy, to get marks and such. I have a lot of friends that have very simple programs, and have a fake loading screen that just makes you sit through and wait. However, my program is relatively complicated, and takes around 5 seconds to load up each time. How would I create a loading screen? I had thought of using a process to run while everything else "loads" and using a boolean to tell when the program starts, but it seems like processes are very disliked here. |
Author: | Zren [ Sat Jan 09, 2016 3:32 pm ] | ||
Post subject: | RE:Create an ACTUAL loading screen | ||
What is slowing down loading? Use var t1 := Time.Elapsed() to find out when a specific thing starts and ends. Eg:
|
Author: | Insectoid [ Sat Jan 09, 2016 6:52 pm ] |
Post subject: | RE:Create an ACTUAL loading screen |
It's not that we dislike processes, but they cause a lot of problems when new programmers inevitably use them incorrectly. What is a loading screen? It's just a picture or an animation. When something finishes loading, update the animation. |
Author: | Jeffmagma [ Sun Jan 10, 2016 11:50 am ] |
Post subject: | Re: Create an ACTUAL loading screen |
I think it's the procedure and variable declarations that are taking a lot of time, I put a Time.Elapsed right after most of them. The stuff inside the other included files are just variable and procedure declarations. |
Author: | Jeffmagma [ Sun Jan 10, 2016 8:07 pm ] |
Post subject: | RE:Create an ACTUAL loading screen |
I added one of the Time.Elapsed to every time i created a variable, and found out that the culprit was my 10,000x5,000 background image, taking around 4 seconds to load |
Author: | Nathan4102 [ Sun Jan 10, 2016 9:22 pm ] |
Post subject: | RE:Create an ACTUAL loading screen |
Oh boy, yeah that'd do it. That's a high enough resolution to display on a 2*2 array of 4K televisions without any up-scaling. :p |