a late response it seems. have you found out where the problem was?
i remember having similar problems - some years ago though. did you try to createcompatibl edc from the same GetDC?
r.
User Profile
Collapse
-
Similarly, be aware of the many optimizations the hardware takes care of. If you have, say, 10 different objects to intersect with, the referenced locations may end up very close to the processor after several calls, such that there is no - or little - memory overhead.
As for the keyword register, I'd trust the compiler to do the job.
Correct, if I'm wrong, please.
The best thing I to do some benchmarks,...Leave a comment:
-
just a - possibly obvious - note:
"float intersectionTes t(const Ray& r)" may perform better....Leave a comment:
-
Thank you for the reply, I should have supplied some code. My specific problem was
set_intersectio n(a.begin(), a.end(), b.begin(), b.end(), std::inserter(c , c.begin()));
where
a,b,c are of type std::set<Key,Cu stomCompare>.
Apparently, std::inserter does not try to use CustomCompare.
I have implemented an operator< into the definition of Key, which does the job, but -
Can I not supply CustomCompare...Leave a comment:
-
insert_iterator and (x < y)
Hi. Is it true - and if so, then why - does the STL (i have some some g++ 4.2 under ubuntu) insert_iterator try to use operator< instead of the Compare object specified in the container, e.g. std::set?
No activity results to display
Show More
Leave a comment: