visible cubes updating indexs from cuda