mobile phone play game 20%-40% CPU occupancy is reasonable, of course, this value with the recent years of mobile phone hardware configuration, will be slightly reduced, if the CPU occupancy rate of more than 80% is very worthy of our attention.Number of frames (FPS)Renders that can be used to indicate whether the page is smooth. Mobile game frame rate fps,30-60 are acceptable, on the 60 for the human eye
small package and performance, and sometimes they will be a cross-trade relationship.CPU UsageIn general, with the mainstream mobile phone play game 20%-40% CPU occupancy is reasonable, of course, this value with the recent years of mobile phone hardware configuration, will be slightly reduced, if the CPU occupancy rate of more than 80% is very worthy of our attention.Number of frames (FPS) refreshed per second by the picture processorRenders that ca
;
configuration>
startup>supportedruntime version="v4.0" sku= ". Netframework,version=v4.0,profile=client "/>startup>Configuration >
The second is to drop the 4.0 down.I don't have the config file because I didn't compile it successfully. (It's silly to think about that library, then.) )So we can only fall into. NET3.5. Also compiled 2.0 of the DLL itself. Compile my project again. As a result, the DLL that preceded the problem was actually dependent. The NET4.0 file. ORZ.
COCOS2DX New development of the game, the hand is very hot, the need for friends can refer to.COCOS2DX new research and development of the game, mobile phone running on the phone is very hot, and later listen to other project groups to share that can be resolved by reducing the frame of the problem, the original is cocos2dx default of 60, later modified to 30, the test found that mobile phone fever problem solved.To modify the code:AppDelegate.cppSet FPS
Usually when the view is scaled and moved, we can use Uiscrollview, because it comes with these functions, we have to do is to tell Uiscrollview a few relevant parameters can beBut the gesture of not realizing rotation is uirotationgesturerecognizerThere are many gestures in iOS:Uirotationgesturerecognizer rotationUITapGestureRecognizer Finger ClickUipinchgesturerecognizer ScalingUiswipegesturerecognizer fingers quickly sweep overUipangesturerecognizer Finger drag and moveUilongpressgesturerecog
The power will be stopped. Except for a bit of heat, there is no loss for the laptop.
However, a strange thing happened in just a few minutes: When I tested JavaScript code with IE, I found that the setInterval frequency was changed to 60 frames/second.
This is normal in earlier versions of IE. However, ie9, which keeps pace with the times, seems to be much lower. I tested the clock frequency of various browsers not long ago. I remember that the setInterval of ie9 can reach over 200
Guess it might be in the main loop using Sleep (0), a search, sure enough to locate the specific code, it is located in the Cocos2dx\platform\win32\ccapplication.cpp, roughly as long as the following:
1
while( 1 ) {
2
if( 有消息 ) {
3
if( 时间到 ) 更新计时, call 主循环函数;
4
elseSleep(0);
5
}
6
// 其他跳出循环判断代码
Firefox versions are provided first.Copy codeThe Code is as follows:Window. Define requestanimationframe ([callback]); // FirefoxWindow. webkitRequestAnimationFrame (callback [, element]); // Chrome Parameters:Callback :( FF (optional, Chrome required)The first parameter of the function to be called in the next repaint operation is the current time.Element :( FF none)It's actually a canvas, and the 'pa' is an animation. (The element that corresponds ally bounds the entire animation ). For canva
, strongly recommend each reader to download down as I step by step debugging, optimization. If you feel that you are helping yourself, you can show support for a star. Behind the picture more, traffic party cautious into.Basic conceptsAfter opening the project, as long as the Customtablecell.swift file is available, it implements the custom UITableViewCell and the internal UI layout, because the focus is on performance optimization, and the code implementation is more casual.First press COMMAND
Cadisplaylink class is called once. After the Nstimer is registered with the Runloop in the specified mode, Runloop sends a specified selector message to the specified target whenever the set cycle time arrives. 2, cycle settings different iOS device screen refresh frequency (FPS) is 60Hz, so cadisplaylink selector default call cycle is 60 times per second, this cycle can be set through the Frameinterval property, The number of Cadisplaylink selector
int getchar (void);The GetChar function is equivalent to GETC (stdin). Read one character from standard inputint getc (FILE *stream);Return value: The return value is usigned char but we treat it with the int typeis typically defined as a macro to useint fgetc (FILE *stream);Is the same as the GETC function, but is generally defined as function usageMacros and Functions:Macro does not occupy the scheduling time, only takes up the compilation time;The function occupies the scheduling time, does n
connected computers must maintain time synchronization. In online games, if a computer lags behind, he should keep it backward. Then, when entering the logic update loop, he should repeat himself several times, to catch up. If the time delay is just an isolated event, there will be no major problem. After one or two speeding events, it will catch up. However, if the game's logic update always times out, the performance will be very bad, and will eventually lag behind. In online games, you ma
front-end event is blocked several times by the firewall.Alas! I can only talk about it in my blog.Function
/*** Create a proxy function with Frame Rate Control for the function * contains details at the end * Note: this function is applicable when the call interval is greater than 1 ms * @ static * @ method getfpslimitedfunction * @ Param {function} accept-specified function * @ Param {number} [FPS = 0]-per second the maximum number of executions.
yourself.Cl_observercrosshair 1 ...... set whether to enable the star in the Observer mode.Cl_updaterate 20 ~ 40. If 25, modem = 15, and Lan = 50 are set on multiple sitesCon_color 255 155 50 ...... HUD color (RGB)Dm 1 ......Drawradar ..................... display radar. Sometimes the radar disappears suddenly and can be used. (sometimes it is useless to press the SERVER)Fastsprites 0 ...... smoke effect, 0 lifelike, 1 super, 2 like GameBoyFps_max X ~ 100. The maximum
some cases, it can also be expressed as "pixels per inch (ppi)" and the length and width of the image. For example, 72ppi and 8x6.
Video resolution:
Resolution of various TV specificationsThe image size of the frequency is called "resolution ". A digital video is measured in pixels, while a video is measured by the number of horizontal scanning lines. SD video Number Resolution is720/704/640x480i60 (NTSC) or 768/720 x576i50 (PAL/SECAM ). Resolution of the new HD TV1920x1080p60, that is, each ho
rmvb format conversion, we recommend that you install: Storm video
Step 3: Set
Video parameter settings:Basically the same as dpgencGeneral:Set FPS to 15Width and height are automatically selected after you select a media file. 256*144 is automatically selected. However, sometimes some videos are automatically adjusted to 240*196. At that time, you need to manually change the settings.Bitrate and Max bitrate (maximum rate): Dynamic Bit rate may be
Disclaimer: the original articles of this blog are all personal originals and are copyrighted. For more information, see http://blog.csdn.net/ml3947. for more information, visit http://www.wjfxgame.com.
I haven't written a blog for a while, but everything is going on in an orderly manner.
The efficiency of the javafx-based game engine wjfxgameengine has been optimized during this period of time (examples of personal blogs have not been uploaded again), simple 2D games, the fastest running speed
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.