The past years have shown that the discrepancy between processor and memory performance is rapidly increasing, making memory access a potential bottleneck for applications which have to process large amounts of data. Raycasting, in particular, is prone to cause problems, since it generally leads to irregular memory access patterns. We discussed practical methods to improve memory access patterns taking advantage of the cache hierarchy.