Mmmm... clipping by itself is not that expensive. What is expensive however is relying on it (and only it) to make sure no content is drawn out of given bounds. Clipping is a (very) suboptimal way to achieve that goal (because the whole drawing is performed but it is only "committed" in the areas marked as "writeable" by the clipping) and, as wysota mentioned though not very clearly IMO, it is way better to manually ensure that your rendering code does not draw anything out of bounds.




Reply With Quote




Bookmarks