I don't understand why my project debugging in Window so very low quality ! I use sample project "Parkour" download on Cocos homepage ! this is its picture . (the quality on Mac is fine , but fps is sometime low )
pls see the image in here http://discuss.cocos2d-x.org/t/cocos-debug-on-window-is-low-quality/16100
Related
I am working on a conferencing app using webrtc.
To reduce bandwidth I draw the webcam streams on canvas and resize the canvas based on the number of the active webcams in the room. So far so good and it was (is) working until chrome updated to version 104 on android devices ...
The stream from canvas plays fine on the source device but when send to other peers over webrtc the stream gets stuck in loading status ...
This only happens in some devices and not all of them ...
after some debugging and testing I figured it out that its because of the canvas size !
Since I am resizing the canvas, it does not have a standard video size and I think that where it fails ...
I tried setting the canvas size multiples of 32 and 64, some sizes works with 32 and some with 64 but not all ...
This is only happening in Android Chrome version 104+, I tried looking at the changelogs for this release to see what has changed, but could not find anything. So anyone knows what change could have cause this and how to fix it ?
I have also enabled simulcast for the streams a,d when its disabled most of the sizes works but still not all of them !
Now we are upgrading the landing page on our web site with a new popular design - with a video in the background, like here https://globalid.net/. But I've found that after 30-60 seconds of page preview, my laptop becomes so hot and system manager shows me that Chrome is getting about 50% CPU but it really does nothing, it's a plain one page with a small 30 seconds video fragment ~4.5 MB.
So, could anybody explain how to solve this problem? Why Chrome is so greedy for resources?
Thanks!
P.S.
After exploring other sites with the video on the landing page, i've found that all of them make system slow (30-100% CPU)
E.x.:
https://smartslider3.com/yoga-hero-block/
Video size 1.5 MB, 15 sec, 24 frame/s, 1920*1081
30-60% CPU
https://theenglishbus.com/
70-100% CPU
It seems it doesn't matter the size of the video, for Chrome it just endless "HD movie".
One solution is disabling 'loop' in the promo video, and after that in some way to check if it's happened and then just to show the slides.
I'm trying to create Browser game with cocos2d-x(javascript).
I have a problem with BatchNode.
on desktop computer, it works very well.(numbers of draw call: 3000→8)
But on android and iOS, it doesnt work.(3000→3000)
Both of them,desktop computer and smartphone, can show nodes and its Texture.
On android and iOS,BatchNode cannot work well?
BatchNode doesn't work in Canvas mode, it only works on OpenGl/OpenGLES/WebGL
Link to GitHub issue: https://github.com/cocos2d/cocos2d-js/issues/1442
i am developing desktop application in Adobe AIR, Now i am on windows, it has setting to turn off display. i set it to 1 min. it working well. but i want to turn off the display when my application is not running. i searched, and i got some result which all telling me that set NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE; in you application and you achived what you want. all searched result say that when you set systemIdleMode to KEEP_AWAKE and display didn't off till your application is running.
i set this setting in initialize event of Application.
Referenace:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/desktop/SystemIdleMode.html
i think, May be some usage issue in it, nothing more in it, please help me !!!
From adobe AS3 docs:
AIR profile support: This feature is supported on mobile devices, but it is not supported on desktop operating systems or AIR for TV devices. See AIR Profile Support for more information regarding API support across multiple profiles.
The important part is highlighted with bold text.
Hope it helps!
I made a small flash program to help me with my workouts but because of the length the computer screen goes idle. It looks like there is a solution for this on android but is there one just for regular flash programs?
If this is an AIR app, to disable screen timeout set:
NativeApplication.nativeApplication.systemIdleMode = SystemIdleMode.KEEP_AWAKE;
If this is Flash running in a browser, I do not believe it is possible.