2D Toolkit Forum

2D Toolkit => Support => Topic started by: stevexu on December 06, 2013, 02:48:57 am

Title: Set a clip region to clip out screen tilemap
Post by: stevexu on December 06, 2013, 02:48:57 am
I have a long long tilemap,  the character walk along with it . The camera bind to the character so we can fellow the character. But i found the fps is low on some device. So I want to set a clip region to disable drawing things which out of screen.  So Is it possible? I found tk2dcamera have a "viewport clipping", but I don't known how to use it!
Title: Re: Set a clip region to clip out screen tilemap
Post by: unikronsoftware on December 06, 2013, 10:23:38 am
The tile map is partitioned and culled outside the viewport. You should try to work out what the bottleneck is before optimising - Its far more likely that you are overdrawing too much or script bound than limited by culled triangles.