24th January 2006 03:08 UTC
avs preset ----- to slow
Do you have any ideea how could i make this preset use less fps?
Archive: avs preset ----- to slow
fastingaciu
24th January 2006 03:08 UTC
avs preset ----- to slow
Do you have any ideea how could i make this preset use less fps?
StevenRoy
24th January 2006 06:29 UTC
Where do I begin?
The very first Effect List has "Clear Every Frame" turned on, and then begins with an additive Buffer Restore. Under most circumstances, that would be a waste, since you can set the Buffer Restore mode to "Replace" instead, then you won't need the "Clear Every Frame" since it won't have any effect.
All that is moot, though, because of something even more stupid: You never save a "Buffer 2" to be restored there. So forget all that and just delete your Buffer Restore. Later, you do the same thing with "Buffer 1". You're not saving anything anywhere, so using a "Restore" is just stupid.
Setting an "Output blending" mode in an Effect List to "Buffer" does not save the output of that list to a buffer. Instead, it uses that buffer as an "Alpha map" to blend the output with the current image. If you don't save anything to these buffers, therefore, there is no output from these Effect Lists.
Removing these useless Effect Lists (and their contents) doubled my FPS and halved the size of the preset.
In the one remaining Dynamic Movement, you have code that reads: "r=t+tb/t+r+d/t-d/t;" ...Why are you adding d/t and then subtracting it again? "r=t+tb/t+r;" is much simpler.
Of course, there are ways to further optimize this preset, but I think I got the main biggies.
The result is attached:
usgroup1_winamp
25th January 2006 13:33 UTC
I added some color, here is the result :)
usgroup1_winamp
25th January 2006 13:38 UTC
lol forgot the attachment
JaVS_v2.5
25th January 2006 14:35 UTC
Really nice, but the fps has drop a bit.. ;) & that's the problemo.
fastingaciu
25th January 2006 20:56 UTC
Thanks to all of you,it's really nice,i like it.
Kar-mAVS
28th January 2006 14:19 UTC
mabye a little late but
I got the FPS up higher (removing effects that did next to nothing, tweaking other effects) and added some new colour maps.
JaVS_v2.5
28th January 2006 15:55 UTC
By removing effects that didn't workout is a trully improvements. The FPS increased! New colour maps and effects are awesome. "Too Slow" had been improves and updates to the next level of pleasure.
fastingaciu
29th January 2006 03:04 UTC
tnx about that i get it now but i am still confused about a thing though: what dose the function "reg" dose?
JaVS_v2.5
29th January 2006 11:01 UTC
By using 'reg' functionality, you are allows to load and save variables by generating a block of code which sets them, when loaded this block of code is executed. The code is easily readable and can be hand edited, you may declare variables and such, but they won't be maintaned after load or passed on into the main code.
You also can create a master code using the 'reg' functionality. It can be set in numerical ranges (reg00 ---> reg99).
Grandchild
29th January 2006 18:04 UTC
:confused: errr... JaVS? what did you just say? It's a 'little' confusing.
Any way the 2nd paragraph says it quite right, although a bit complicated.
Nuff said:
reg's are normal variables. The difference is, that they can be used anywhwere in any codeable component. They are indexed [as stated above] from 00 to 99. So you would define reg's just like any other variable:
reg01 = sin(blabla*20)*.5+.5;
Loading is just as simple as other variables:
x = reg01+reg35*reg36;
where the first line could be in one SSC in the beginning, and the other line in your final blow-away-Dynamov!
You'd usually use reg's to calculate things you want to use several times throughout you preset for speed reasons. Also it's good for synchronizing things, like e.g. 3D SSCs.
GC
StevenRoy
30th January 2006 00:06 UTC
Let me see if I can make it even more clear...
The reg## variables, such as reg00 and reg99, work like regular variables, except they're shared globally. You can set a reg## variable anywhere, and then access that value anywhere else, even in a different preset!
They're mostly used for synchronization.
It is also possible to insert reg## variables into the text displayed by the Render / Text component.
Another feature of reg## variables is that you can monitor their values with the AVS editor's "Debug Window". This can come in useful if you ever have to debug your AVS code.
There. I hope that was helpful.
JaVS_v2.5
30th January 2006 00:34 UTC
Yeah, my explanation just made everyone confused and I just realise bout that right after I read it twice :(
@Grandchild & StevenRoy: Good explanations :up:
fastingaciu
30th January 2006 01:05 UTC
I think i get it.All of you were clear(in a way or another).Tnx and oh by the way, stevenroy i downlaoded some of ur music: very very nice
jheriko
30th January 2006 02:24 UTC
fastingaciu. start reading the help and the rest of the forums.
stop wasting peoples time, the questions you ask are neither hard to answer, nor different or interesting.
hornet777
31st January 2006 03:36 UTC
i'd say its high time for several peeps to get some social skills on this forum
JaVS_v2.5
31st January 2006 04:15 UTC
Hmm, social skills are necessarily needs on this forum :weird: and people who is new to this need to learn deeper of it. :blah:
jheriko
1st February 2006 05:08 UTC
Me? Social skills. Bah. I think everyone who frequents this forum could probably do with some better social skills, half of you are barely able to communicate properly in the first place... :p
I will be hard on anyone who comes along posting stupid questions because they deserve it. Every stupid question asked and answered leaves a stupid guy with some knowledge he didnt earn or deserve, which gives them less incentive to learn... which makes the global problem worse.
If anything fastingaciu needs to learn social skills, his attitude of 'i expect help' is pretty unaccetpable socially.
its just a lot less nerve racking or embarassing when you ask stupid questions online than to a real person in person... so no lesson is ever learned by humilation or embarassment.
people who only ever ask for help and learn nothing for themselves are annoying. they are MORE annoying in the real world. personally if I was a moderator here (thank god i am not) i would ban people like this after the third or fourth stupid question... they need to learn their lessons somehow.
people like this never contribute... they just waste our time...
hornet777
1st February 2006 07:25 UTC
what does it say that a generality was taken personally?
jheriko
1st February 2006 08:06 UTC
Originally posted by hornet777that you make vague statements which are easily misinterpreted? (like the above, and previous post)
what does it say that a generality was taken personally?
Grandchild
1st February 2006 16:19 UTC
Nah, I don't think you have Jheriko.
It's just the combination of people asking FAQs and of people that like teaching [like StevenRoy and myself] and feeling superior teaching stuff.
I am weak...
:p
StevenRoy
2nd February 2006 08:48 UTC
"Give a man a fish and you feed him for a day.
Get a man to fish and you feed him for a while.
Slap him with a fish and you make an enemy for a lifetime."
I'm not sure I remembered that quote quite right. ;) :D
Anyway, it's only natural for there to be people out there who don't know how to find the information they want. Yes, it would be nice if everyone with questions knew how to use the search function effectively, and the search function led them to all the answers they wanted. Unfortunately, not everyone is that smart... at first. And not all the possible questions have been asked.
If we get the less-smart people pointed in the right direction, however; if we answer their questions, and also show them how to find the answers we have given others in the past (the infamous search function probably could stand to be more visible, by the way); once they start learning, and start figuring things out, who's to say what astounding things they could possibly come up with in the future?
"Teach a man to fish and he may someday catch a whale!"
(That's a fun quote to butcher.)
hornet777
2nd February 2006 09:58 UTC
lol, Grandchild
no weakness in honesty!
jheriko
7th February 2006 05:37 UTC
Originally posted by StevenRoyI love these quotes. Mainly because there are hundred like it, and they seem so fundamentally correct on the face of it. I hate trying to explain why these things are wrong (I am sure I will offend someone with what I say :P), but I will give it a crack anyway:
"Give a man a fish and you feed him for a day.
Get a man to fish and you feed him for a while."
StevenRoy
7th February 2006 06:58 UTC
I suppose the question now is: By helping him with his immediate problem, and explaining some of the things he needed explained, am I also encouraging him to delve deeper into the mysteries of AVS? If he understands some of the more advanced concepts I've explained here, will he be more inclined to experiment with the more basic features, and thus learn more on his own?
Let's judge how much he's actually learning once he asks his next question.
Besides, we're forgetting the most important thing: I got fastingaciu to listen to my music! :D
PAK-9
7th February 2006 11:33 UTC
Originally posted by StevenRoyYea I mean its not like right at the top of the forum there is a topic called Announcement: How to find the answer (READ ME FIRST) or anything. And its not like just underneath it there is a thread called A list of AVS Tutorials or anything. And its not like just underneath that there is a thread called AVS Frequently Asked Questions or anything.
...Anyway, it's only natural for there to be people out there who don't know how to find the information they want...
JaVS_v2.5
7th February 2006 12:02 UTC
If we could made the announcement and the other informations, FAQ, etc. automatically pop out when a new people (noob of course) who is opening the AVS forum section. Nah, sure it's not going to work too! The point is, they are so lazy to read all the important stuffs.
jheriko
7th February 2006 18:40 UTC
I have no problems with people helping people. I just think its better to nudge and poke them towards figuring it out for themselves when its something simple... otherwise they tend to come back with more simple questions they could answer themselves.
fastingaciu
7th February 2006 20:49 UTC
From what i just read here i got that i'm a noob and i should be hanged and thank god i'm not the only one.You guys heleped so much u dont even realise, i'm working on a pack and it isnat going so well. I think i'am gooana try and reread some avs tutorials mabey now i'l get more then last time.I only started like 6 months ago and now i can understand some codes(not very comlicated) but i cant do my own and thats what i'm trying.So i'm sorry if i ofended someone by makeing this thread.
jheriko
8th February 2006 07:43 UTC
Nah nobody offended me, I am just sick of seeing noobs spoon fed, because it doesnt help anyone in my experience, especially the noob.
Fork me on GitHub