pinning pointer arrays memory


i'm now operative ray-tracer c# hobby project. i'm perplexing grasp decent digest speed implementing tricks c++ doing have run mark trouble.



the objects scenes ray-tracer renders stored kdtree structure tree's nodes are, turn, stored an array. optimization i'm carrying problems while perplexing fit tree nodes illusory cache line. means doing nodes enclose pointer left child node only. following excellent right child follows directly after left array.



the nodes structs during tree construction succesfully put array stationary memory manager class. i start camber tree it, during first, seems work only fine. following during indicate early digest (about same place any time), left child pointer bottom node astonishing indicating during zero pointer. i have finish rubbish collecter changed structs array lies heap.



i've attempted several things pin addresses memory nonetheless zero seems final whole concentration lifetime i need. 'fixed' keyword wholly seems assistance during unparalleled slight calls dogmatic 'fixed' arrays wholly finished rudimentary forms node isn't. there good proceed am i only too distant down route things c# wasn't meant for.



btw, changing c++, while maybe improved choice high opening program, an option.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?