Home | Reviews | GUIpedia | Forum | Fun500
atrocity | A Word Of Warning...Not a big post, but if you EVER decide to implement your own scripting language/compilable program into your GUI, make SURE you double check your scripts after you write them for errors and don't assume it's your actual GUI that's slow. I just spent the last hour rewriting the final "app" that was hard-coded into my GUI and making it into a script that updates where your mouse cursor is and stuff, and the thing was rarely updating...like 2x a second in the window...unacceptable when you're trying to show in real-time where the mouse cursor is and stuff. I seriously looked through my code over and over and couldn't figure out why it was running so slow but overall the GUI was super responsive. I finally decided to look at the actual code of the stats.dsf file (DOSDoors Script File) and saw I had a "DoEvents" line at the bottom before it looped... came to realize i copy/pasted the fps window code and never removed the line. I have that in there to basically wait like 1/2 a second before doing anything else in the window to save processing power for apps that don't need it. Yeah, took that out and now I can have a ton of the windows open and all are updated in real time. D'OH! | 2013-04-30 | 10:05 PM |
2021 Brandon Cornell