Maximum texture size supported by Cocos2d-x on different platforms

Source: Internet
Author: User

Reprinted from: http://www.ityran.com/archives/3775


In principle, the cocos2d-x can display any size texture, but in fact the texture size is limited by hardware and operating system reasons.

Here we provide a table with texture size restrictions on different platform Simulators

Platform Maxsize in pixels
Win32 2048*2048
Android 4096*4096
IPhone 3 1024*1024
Iphone3gs 2048*2048
IPhone 4 2048*2048

There are also some different restrictions on the real machine. Here are some test results: G3 1024*1024, iPhone4 2048*2048

Therefore, for developers, if you want to cross-platform and the game runs smoothly, you 'd better keep your texture smaller than 1024x1024, which is the limit for most machines.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.