View.Update 'Lag' issues
Author |
Message |
Frost35
|
Posted: Tue Apr 25, 2006 10:00 pm Post subject: View.Update 'Lag' issues |
|
|
I'm trying to make the animations smooth, and to stop the flickering, but when I add in the View.Update, it causes everything to go slower. Am I doing something wrong? :S
Thanks.
Description: |
|
 Download |
Filename: |
paint 1.1VU.t |
Filesize: |
15.81 KB |
Downloaded: |
76 Time(s) |
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
[Gandalf]

|
Posted: Wed Apr 26, 2006 12:11 am Post subject: (No subject) |
|
|
From a 10 second glance (don't have Turing installed here), it doesn't look like it. You should note that View.Update causes your program to slow down no matter what, there's no getting around it.
Also, something you should consider is that you don't need to have your procedures near the end of your program, using the forward keyword. Just put them near the beginning, as is common practice and as is convenient.
|
|
|
|
|
 |
codemage

|
Posted: Wed Apr 26, 2006 8:12 am Post subject: (No subject) |
|
|
I don't find it slow at all - are you on an older system?
Oh - looks fantastic, by the way!
|
|
|
|
|
 |
Frost35
|
Posted: Wed Apr 26, 2006 10:35 am Post subject: (No subject) |
|
|
ya... I just ran it on another comp, and its working fine. how... odd
this comp has a P4 2.4, and 256MB of ram (I think).
My comp at home has 3.0 P4, and 768 MB of ram. So its very odd. I guess I have to clean my comp again Razz
I have 2 copies of it, so when this gets marked Ill make sure to put both in.. just incase.
Could it be that my turing version at home is 4.0.3, and this one is 4.0.5 ?
very weird, because I suspect this comp (school comp) to have more spyware and garbage on it...
btw, I was using the forward procedures so I could sort all my procedures properly and clean my code up (it was 650 lines, so I did pretty good). Took your advice and removed the forwards.
Thx guys.
|
|
|
|
|
 |
neufelni
|
Posted: Wed Apr 26, 2006 10:49 am Post subject: (No subject) |
|
|
Great program. It is so much better than the paint program that I once made.
|
|
|
|
|
 |
Andy
|
|
|
|
 |
TokenHerbz

|
Posted: Wed Apr 26, 2006 3:28 pm Post subject: (No subject) |
|
|
sooooooooooo slowwwwwwwwww
|
|
|
|
|
 |
Clayton

|
Posted: Wed Apr 26, 2006 4:18 pm Post subject: (No subject) |
|
|
something you could look into, is View.UpdateArea, this will allow you to update the parts of the screen that something is happening
code: |
var x, y : int:=0
loop
cls
Draw.FillBox (x, y, x + 10, y + 10, black)
View.UpdateArea (x - 2, y - 2, x + 12, y + 12)
delay (20)
x += 1
y += 1
end loop |
what this does move the box im drawing, and updates the screen around it, making the program run much faster, try it and see if that speeds it up (it should!)
|
|
|
|
|
 |
Sponsor Sponsor

|
|
 |
Frost35
|
Posted: Wed Apr 26, 2006 5:13 pm Post subject: (No subject) |
|
|
Thx SuperFreak82. Yeah I saw something on the earlier, but as it stands I can't implement that yet, because at my house I'm only running 4.0.3, have to get the newer version first.
|
|
|
|
|
 |
|
|