(Unfinished)
1. The most memory occupied by 2D games is undoubtedly image resources.
2. different platforms of cocos2d-x read different texture mechanisms. Cgimage is used in iOS, While PNG is directly called in Android and windows. I tested that using the PNG Library to directly read PNG would save about 1 MB of memory than cgimage (4 MB of memory for images), but the speed would be twice slower than that of cgimage. How to choose between time and space depends on the actual situation. Howe
1, 2d game the most memory is undoubtedly the picture resources.2, Cocos2d-x different platform to read the texture of different mechanisms. Under iOS using Cgimage,android and Windows is directly calling the PNG library. I tested, using the PNG library directly read PNG will save about 1MB more memory than cgimage (image occupies 4mb of memory) but the speed is one times slower than Cgimage. How time and space can be a choice depends on the actual situation. But the best option seems to be
1, 2d game the most memory is undoubtedly the picture resources.2, Cocos2d-x different platform to read the texture of different mechanisms. Under iOS using Cgimage,android and Windows is directly calling the PNG library. I tested, using the PNG library directly read PNG will save about 1MB more memory than cgimage (image occupies 4mb of memory) but the speed is one times slower than Cgimage. How time and space can be a choice depends on the actual situation. But the best option seems to be
How to optimize cocos2d-x3.2 game memory in Cocos2d-X, cocos2dx3.0
There will be a problem in game project optimization. How can we reduce both the memory size and the package size as much as possible? In actual projects, some experiences are shared. In fact, the most memory occupied by 2D games is image resources. The performance of a single image varies greatly with different texture formats, the following table shows the test results in a small Demo on the IOS platform. The original memory us
There will be a problem in game project optimization. How can we reduce both the memory size and the package size as much as possible? In actual projects, some experiences are shared. In fact, the most memory occupied by 2D games is image resources. The performance of a single image varies greatly with different texture formats, the following table shows the test results in a small demo on the iOS platform. The original memory usage of this demo is 7 MB, and the test method is to load 5 2048*204
too low-level, I don't want to dig deep, and I am not fit to explain the problem. (Translator: Haha, know for know, do not know for unknown)Using Npot TexturesNOPT is the abbreviation for "Non Power of", translated "not a power of 2". Npot stands for "Non power of". In the cocos2d1.x, you must open the support for Npot in the CcConfig.h file, but cocos2d 2.x is not needed, it is supported Npot by default. All 3 Generations (iphone 3GS) later iOS settings support Cocos2d 2.x (because they suppor
ArticleDirectory
Iview Interface
Iviewengine Interface
Viewengineresult
Viewenginecollection
1. Implement the iview Interface
2. Implement the iviewengine Interface
3. Use stringtemplateviewengine
I. Summary
This article explains the role of viewengine, deeply parses all the interfaces and classes related to viewengine implementation, and finally demonstrates how to develop a
useCache); void ReleaseView(ControllerContext controllerContext, IView view); }
In code 1-1, we can see that three methods are defined in the IViewEngine interface type. The first parameter in the first FindPartialView () method is the Controller context type, it contains ViewData and ViewBag information. The second string type parameter is the name of the segment view, and the third parameter is a Boolean parameter indicating whether the c
As an early childhood entertainment project, feiqi seems to be quite profound in my memory. It has always been my goal to achieve it by coding. WPF has a comfortable image encoding experience and naturally becomes my first choice. Along with the binding of WPF, a new model also emerged-mvvm (Model-View-viewmodel ), makes the page and logic better separated. However, this experience has been severely affected for me, regardless of technology or ideology.
Cause: MVP Mode Discussion
Of
I recently learned how to develop games on the iphone. I think it is not that difficult to learn a tool. I would like to share some experience in image loading with beginners. I hope everyone can quickly become a master.
Currently, there are many formats for images in cocos2d development for iphone, but I only use two of the most commonly used formats here, one of which is "*. png "format, the other is ". pvr format, and compressed
masterName, bool useCache); void ReleaseView(ControllerContext controllerContext, IView view); }
In code 1-1, we can see that three methods are defined in the IViewEngine interface type. The first parameter in the first FindPartialView () method is the Controller context type, it contains ViewData and ViewBag information. The second string type parameter is the name of the segment view, and the third parameter is a Boolean parameter indicat
Original article: http://385559842.blog.163.com/blog/static/6835714020123510138495/PVR images are common on iOS devices, because powervr display chips are usually used on iOS devices, while PVR images can be directly loaded by these chips, fast. The full name of the PVR. CCZ image is compressed PVR, which is the compre
Texturepacker is a good image combination tool
Address http://www.texturepacker.com for texturepacker
PVR images are common on iOS devices, because powervr display chips are usually used on iOS devices, while PVR images can be directly loaded by these chips, fast. The full name of the PVR. CCZ image is compressed PVR
method:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> // New Object Imageview iview = New Imageview ( This . Mycontext );Iview. setimageresource (myimageids [position]);Iview. setscaletype (imageview. scaletype. fit_xy ); // Set the width and height of the imageview object
Problem:There is a page for normal list display and chart display.Solution:Define two user controls: chartlist. ascx and datagridlist. ascx.Abstract A class factory, such as abstractfactory.
// The chartlist. ascx and datagridlist. ascx control classes are both derived classes of system. Web. UI. usercontrol and inherit an iview interface. There is only one method, bindlist ()// The example is very simple, and the interface can be expanded...Let's
ASP. NET MVC view (i)PrefaceFrom the beginning of this article into the view part of MVC, in some of the previous space more or less views and some objects in the view of the use of descriptive narrative. It's just not that the view length is not comprehensive, this article first explains the definition of the view engine and its use, thus slowly understanding the view engine and the working process of the View module.ASP. NET MVC View
Self-defined view engine simple Demo sample
Raz
ASP. NET MVC view (i)PrefaceFrom the beginning of this article into the view part of MVC, in some of the previous space more or less views and some of the objects in the view of the use of the description, but after all, not the view length is not comprehensive, this article first to explain the definition and use of the custom view engine, This slowly takes you through the process of working with the view engine and the View module.ASP. NET MVC View
A simple example of a custom view en
( Controllercontextcontrollercontext,iviewview); } in code 1-1 We can see that there are three methods defined in the Iviewengine interface type, and the first parameter in the first Findpartialview () method is the controller context type. The bread is ViewData,ViewBag Some information, and so on, the second parameter of the string type is represented as the name of the partial view, and the third parameter is a Boolean-type parameter that indicates whether the current information is cached. T
The following is a summary of the Controller processing process in different layers:1. Page handling processSend request-> UrlRoutingModule capture request-> MvcRouteHandler. GetHttpHandler ()->
MvcHandler. ProcessRequest ()
2. MvcHandler. ProcessRequest () processing process:Use the factory method to obtain the specific Controller-> Controller. Execute ()-> release the Controller object
3. Controller. Execute () Processing ProcessGet Action-> call Action method to get returned ActionResult-> ca
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.