Issue with page refresh

Hi,

previously I thought it was an issue with LabelTTF, but now I can see it is not.
It’s got something to do with page refresh/reload (I;m using Chrome 28.0.1500.52 beta (which by the time you read this is probably 100 versions old!), because if I open up the page with cocos2d-html everything works fine, but when I refresh, I keep getting:

PERFORMANCE WARNING: Some textures are unrenderable.

The two scenarios:

  1. Enter the address and hit enter - no warnings
  2. Hit refresh button - warnings
  3. Hightlight address and hit enter - no warnings

What’s up with that?

K

Thank you for report this issue.

I will check it.

Hi,

I keep having that performance warning too but unlike Krystian it happen all the times, even with the test cases and no matter if I enter the address, hit enter on the already typed address or refresh the page, it’s always there.
Am I doing something wrong or is it a bug?

my Chrome version is the 28.0.1500.71 and the cocos2d-html5 is the 2.1.4

this is the console of the Test Cases main page

Cocos2d-html5-v2.1.4 CCCommon.js:123
cocos2d: GL_VENDOR:     WebKit CCCommon.js:123
cocos2d: GL_RENDERER:   WebKit WebGL CCCommon.js:123
cocos2d: GL_VERSION:    WebGL 1.0 (OpenGL ES 2.0 Chromium) CCCommon.js:123
cocos2d: GL_EXTENSIONS:  EXT_draw_buffers WEBKIT_EXT_texture_filter_anisotropic OES_element_index_uint OES_standard_derivatives OES_texture_float OES_vertex_array_object WEBKIT_WEBGL_compressed_texture_s3tc WEBKIT_WEBGL_depth_texture WEBGL_lose_context  CCCommon.js:123
cocos2d: GL_MAX_TEXTURE_SIZE: 4096 CCCommon.js:123
cocos2d: GL_MAX_TEXTURE_UNITS: 16 CCCommon.js:123
cocos2d: GL supports PVRTC: NO CCCommon.js:123
cocos2d: GL supports BGRA8888 textures: NO CCCommon.js:123
cocos2d: GL supports NPOT textures: YES CCCommon.js:123
cocos2d: GL supports discard_framebuffer: NO CCCommon.js:123
cocos2d: GL supports shareable VAO: YES CCCommon.js:123
function requestAnimationFrame() { [native code] } CCCommon.js:123

6 PERFORMANCE WARNING: Some textures are unrenderable. index.html:1

XHR finished loading: "http://localhost/cocos2d/Cocos2d-html5-v2.1.4/samples/tests/res/Images/bugs/circle.plist".

6 PERFORMANCE WARNING: Some textures are unrenderable. index.html:1

XHR finished loading: "http://localhost/cocos2d/Cocos2d-html5-v2.1.4/samples/tests/res/animations/grossini.plist".
XHR finished loading: "http://localhost/cocos2d/Cocos2d-html5-v2.1.4/samples/tests/res/animations/animations-2.plist".
XHR finished loading: "http://localhost/cocos2d/Cocos2d-html5-v2.1.4/samples/tests/res/animations/grossini_blue.plist".
XHR finished loading: "http://localhost/cocos2d/Cocos2d-html5-v2.1.4/samples/tests/res/animations/grossini_family.plist".
XHR finished loading: "http://localhost/cocos2d/Cocos2d-html5-v2.1.4/samples/tests/res/fonts/bitmapFontTest5.fnt".

Maybe it’s a problem with WebGL support?

I was having the same issue and after I’ve changed “renderMode” from “0” (default) to “1” (canvas only) on my “cocos2d.js” the warnings are gone, as well as the performance has dramatically increased (specially on Firefox).