View Single Post
Old 05-25-03, 10:18 PM   #73
Sazar
Sayonara !!!
 
Sazar's Avatar
 
Join Date: Jan 2003
Location: Austin, Texas
Posts: 9,297
Default

Quote:
Originally posted by Behemoth
this is one way of shuffling instructions that manually reduces workload:

original program:

do a;
do b;
if (c == true) {do d;}
else { do e;}
do f;
do g;
do h;
do i;
do j;


by studying the scene, c is always true, instructions other than a,d,h have no visual effect in this scene, let me make a faster version of a mathematically functionally visually identical program of above by "shuffle instructions":

do a;
if (c == true) {do d;}
else {do e;
do b;
do f;
do g;
do i;
do j;
}
do h;



original program does 8 instructions and 1 comparison per pass.
my mathematically functionally visually identical program does only 3 instructions and 1 comparison per pass. what an optimization!

shuffle instructions can be very cheaty imho

p.s. if my post offend you in any way, i am sorry, i am just here to share my point of view
how come you never came up with such detailed work dealing with nvidia's 'optimizations' as you call it ?
Sazar is offline   Reply With Quote