Cocos2d-JS v3.2 RC0 is arrived ! Efficient and reliable!

So great to hear the arrival of Cocos2d-JS v3.2!

After update from v3.1 to v3.2, the performance to load online resources with

cc.loader.loadImg

is incredible fast! Good job!

But when cc.loader.loadImg sending the request to server, it still blocking the main thread which cause the app unresponsive until all the request finish send.

Is there any way to solve this problem like multi thread?

Thanks!

Update is cheers for good work !

I am developing a game app using mainly Cocos-JS3.0 in Japan .

In cocos2d-JS version 3.2 , can I use the Sprite3D?

Where can we download 1.1.0 ? Or maybe it is working with 1.0.2 as well ?
But good gift for us, thanks :wink:

@a_fuji Thanks

However, the 3d feature haven’t been bound to JSB yet, it’s planed before 3.4, please stay tuned.

Please wait one day or two, IDE team will release 1.1.0 very soon.

Thanks for answers!

I am looking forward to the completion .

Hi There…
Since upgrading to 3.2rc0 my app crash on android when it is launching…
This is the log…

I/ActivityManager(  336): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity} from pid 20463
I/ActivityManager(  336): Start proc com.drawnintocode.tgv for activity com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity: pid=20478 uid=10069 gids={50069, 3003, 1015, 1028}
D/dalvikvm(20478): Trying to load lib /data/app-lib/com.drawnintocode.tgv-1/libcocos2djs.so 0x41229330
E/dalvikvm(20478): dlopen("/data/app-lib/com.drawnintocode.tgv-1/libcocos2djs.so") failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "atof" referenced by "libcocos2djs.so"...
E/AndroidRuntime(20478): java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "atof" referenced by "libcocos2djs.so"...
E/AndroidRuntime(20478): 	at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:85)
E/AndroidRuntime(20478): 	at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:99)
E/AndroidRuntime(20478): 	at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:47)
W/ActivityManager(  336):   Force finishing activity com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity
W/ActivityManager(  336): Activity pause timeout for ActivityRecord{412442a8 u0 com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity}
I/ActivityManager(  336): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity} from pid 549
I/ActivityManager(  336): Start proc com.drawnintocode.tgv for activity com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity: pid=20521 uid=10069 gids={50069, 3003, 1015, 1028}
D/dalvikvm(20521): Trying to load lib /data/app-lib/com.drawnintocode.tgv-1/libcocos2djs.so 0x4122a0a0
E/dalvikvm(20521): dlopen("/data/app-lib/com.drawnintocode.tgv-1/libcocos2djs.so") failed: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "atof" referenced by "libcocos2djs.so"...
E/AndroidRuntime(20521): java.lang.UnsatisfiedLinkError: Cannot load library: soinfo_relocate(linker.cpp:975): cannot locate symbol "atof" referenced by "libcocos2djs.so"...
E/AndroidRuntime(20521): 	at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:85)
E/AndroidRuntime(20521): 	at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:99)
E/AndroidRuntime(20521): 	at org.cocos2dx.javascript.AppActivity.onCreate(AppActivity.java:47)
W/ActivityManager(  336):   Force finishing activity com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity
W/ActivityManager(  336): Activity pause timeout for ActivityRecord{41244400 u0 com.drawnintocode.tgv/org.cocos2dx.javascript.AppActivity}

i am using ndk r10c

Hi, @tipsycoder

Can you describe how to reproduce this issue ?

I already created a topic about it and user advice me to manual place the function in a source file.
Anyhow, i am using

  • cocos code ide 1.0.2
  • NDK r10c
  • Targeting Android 21 API

the runtime is built successfully, so i test it on my real device which is Jelly Bean. That is where the problem arise.
i went bk to ndk r9d and it run fine…

So i did some internet searching and realize that it wud work on device running on Android L but not below.

In fact, v3.2 works best with Code IDE 1.1.0 which is released today:

http://www.cocos2d-x.org/news/388

You may want to test it out, it will solve your problem of compilation

Nice, I will try both.

Thank you Cocos Team.

Could someone please take a look at my topic? I can’t build 3.2 RC0 for Android…

I have issues with ScrollView on this version? rolling back to 3.1

@siauw hat kind of issue ? Can you tell us more about it ?

I haven’t looked deep into the problem since I don’t have the time to do it.

It seems like all the children of Layout in ScrollView not get scrolled when I touch down and move the scrollview, but gets updated after touch up event later.

Is there code changes in Layout or ScrollView?

note : I’m using lots of layout trees in my ScrollView.

Hi @siauw
Could tell us which platform the problem has? web or native?

And how to reproduce the problem?

Yes, There are some changes in ccui.Layout and scrollView for performance.

Thanks for your feedback.
David

I was just trying for html5 only, I haven’t tried on native

This is how I structured my Scrollview contents :
Scrollview -> Layout -> Layout(s) -> Image(s), Button(s)

I will give some codes later. I will have to tidy up my codes a little :smile:
But that’s how I get to the issue.

Hope that helps

OK, @siauw,

I’ll test it by your steps.

It seems the problem has been fixed in 3.2. Thanks :slight_smile: