Archive: need optimization


30th March 2003 21:33 UTC

need optimization
Hi there, I'm quite new at AVS and I need your help.
I've read many threads on this forum and I'm sure my problem will
be an easy task for you ppl. I've made this preset attached below and I like the effect very much. But the FPS is bad and I need optimization. Is it possible to get this preset run faster?

thanks in advance.

ps. It uses Tentacles 3d ape.


30th March 2003 21:40 UTC

change the tentacles colours to only 6 colours
change the DM to say:
"d=sin(d);
r=cos(r)*((rand(9)*0.1));"
remove the fadeout and one of the fast brightness

Thats about all you can get rid of without ruining the effect iw wont change it much though, tentacles 3d is a FPS eating machine. If you're to be releasing presets i would strongly advise against using it. Not because of the FPS but because people are sick of seeing it everywhere. Kind of irrelevant but i'm just saying.


30th March 2003 21:43 UTC

Wow, that's actually pretty cool. I liked it better when the fadeout was toned down a bit, there's more colors. Maybe if you used a different render object it would make it faster. Tentacles.ape is cool, but it was only meant for UnConeD's "Rubber Starfish" preset, so you really shouldn't use it anyway. I really don't think the FPS is that bad, it's a nice fluid preset. Nice job:)


30th March 2003 21:54 UTC

Thank you. The preset was originaly based on Render/simple witch made it a fluid tunel thing, but it was boring so I decided to use Tentacles 3d to give it a 'flow'


1st April 2003 12:35 UTC

is it posible to give it a camera move, that looks onto the walls of this tunel-like preset? I've tried to put one more DM but all i get is that there are many presets close to each other (wrap) and the camera rotates around them. I wish it rotates inside the preset. Is it possible? How ?


1st April 2003 12:51 UTC

Don't know 'bout the camera movement. But the preset itself is quite cool. Keep up the good work ;)


1st April 2003 15:11 UTC

Nice preset, but I wasn't allowed to use Tentacles 3d! Thats not fare!


1st April 2003 16:57 UTC

You were allowed to use it. Just nobody wants to see in yet another noob preset. al3000 please elaborate that post didn't make any sense to me. If you want to make a real tunnel preset you have to learn complex DM's and judging from that preset i doubt you're ready for that. Continue learning avs, search these forums, you'll find many a helpful post but i doubt you could do that now.


1st April 2003 20:19 UTC

Sorry I'm not a native speaker I'll have to contemplate on what I'm trying to ask and transform it to english. Maybe in a next thread.


2nd April 2003 03:13 UTC

one note: please don't use the tentacles and metaballs apes by unconed, it's really tacky and in a certain light could be thought of as a rip. try to create your own tentacles effect instead, if you really need to.

(i'd look at the preset but i'm not allowed on the computer where i could actually run it and try some optimizations, sorry)


2nd April 2003 07:18 UTC

Optimazations:
1)remove x=1; from the dynamic movements, its of no use when a variable is a constant,
2)secondly use a static movement ( movmnent ), there's no need to use a dynamic one
3)Remove the Misc/Set render mode from the effect list in the effect list.
4)Instead of using two fast brightness' use one Multiplier APE ( By UnconeD ), I think that will be faster.
5) TIP( Not to improve speed ): For a better looking preset, in the effect list, put the fade out before the effect list. so the position of the fadeout will be:


-Effect list
Fadeout.
+ Effect List
Movement
Multiplier

2nd April 2003 11:43 UTC

shreyas: thanks a milion m8, it realy made it faster and that renderMode did nothing in there!! I wish I know why did I put it inside? but there is a strange thing going on... when I replaced the DM with a SM(with the same code and options) it changed into a diffirent effect(?) It looks like Trans/grain.

And also to Atero and other ppl:
I don't want to publish my presets or make packs from them.I wish no harm to your scene or to your credits. For me, what matters is the effect and I only use it for my own pleasure. I have a slight knowledge of AVS scene rules, but I hope that using UnconeD ape in a preset that will never be released to public is not a crime. I'm also curious if autor of this ape realy don't want ppl to use it? I thought that as a creator, One is happy when his creation brings joy to others. I also wish I could make a SSC that simulates Tentacles 3d but I have not enough knowledge on SSC.


3rd April 2003 05:46 UTC

Originally posted by al3000
when I replaced the DM with a SM(with the same code and options) it changed into a diffirent effect(?) It looks like Trans/grain.
iseriously dont know what has happened, but I think the problem is with the dm and not the static movemnt, because the ststic movement is a lot more reliable.

edit: i think i got the problem

The dynamic movement tends to shift the pixels a bit( dont know why, I think its a bug ) and you have used r=cos(r*x)*(1+(rand(9)*0.1)); where rand(9)*.1 will return a random number 0 to .9, so this is not noticible when you use a dynamic movement as the shifting of the pixels masks the effect a bit, but when you use a static movement, the effect is clearly seen.

3rd April 2003 10:40 UTC

OK. now I see. thanks a lot!