improving the bind-view render algorithm to now take primitives into consideration