-
-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Android]: API 'mesh.path:update' index data not update #390
Comments
Hey. May I ask to try in latest build? |
In my application, I intergrate a spine animation system to engine . |
Hi @zhiyangyou , you are right, I already fixed this in Spine but haven't shared it since it is not the fix we really need. Which Spine Runtime version are you using? |
Thank you for reply @depilz The "spine" version I use is: Because ShapeObject was reused and index data was not pushed to the GPU side during the Verts UVs Indices update. And I suggest that spine with cliperAttachment be added to the "solar2d-spine" test case |
Woow! For real? Having Spine running in C++ would be an incredible boost in performance! I'm working with Spine 3.9, but I'm going to update 4.0 too and share the fix in a moment. |
@zhiyangyou This is it: |
Thanks for sharing |
I modified the Rtt_LuaLibDisplay.cpp file and added the display.newspine() method, Using spine-cpp did improve performance a lot in my tests
|
That's exactly what I wanted to do! But didn't know C++ enough to do that task alone. When I made the tests, most of the delay was caused by running the runtime and only a small portion by the drawing itself, so migrating to C++ was my hope. If you have a public fork of this I would love to collaborate and help making this officially part of the engine. |
Currently in development,there are still some issues that have not been dealt with , using Corona's memory management, disk IO, assetsPath , bug fix , .etc |
Hi. @depilz brought this up on Discord and there were some comments there: https://discord.com/channels/721785436195782677/721785436195782680/973953535035199498 I'm StarCrunch there and was wondering some things myself. Do you know all the parts where you need to integrate with the engine, versus where it's convenient? |
@zhiyangyou Hi. Something I saw just now: Vertex array objects are disabled on Android, so you go through this path: https://github.com/coronalabs/corona/blob/master/librtt/Renderer/Rtt_GLGeometry.cpp#L282 But that's missing the index update bits from further up: https://github.com/coronalabs/corona/blob/master/librtt/Renderer/Rtt_GLGeometry.cpp#L268 This seems to be exactly your situation. |
hi @depilz corona_spine_cpp_adapter demo code https://github.com/zhiyangyou/corona/blob/master_spine_cpp_intergration_test/Corona%26SpineCppREADME.md I can not access this discord channel , discord user name zhiyangyou#5364 |
My problem is solved, thank you for your kind help |
Wooah!! That's amazing! Thanks for this big contribution @zhiyangyou. The discussion was about what is the best way to make this officially part of the engine, and that's probably making it a plugin, and I'm gonna work on it. |
We got set of pull requests to make it possible for this to be a plug-in. |
…m which VAO disabled ,such as Android
Describe the bug
on windows simulator , API 'mesh.path:update' work normally
on android platform , API 'mesh.path:update' does not work, seem to that IBO has not been updated
this bug will show by gif image
test demo
assets2.zip
bug
bug fixed??
Since I am not familiar with the source code, I am not sure if this modification is correct,
in Rtt_GlGeometry.cpp line:301,
bind target IBO
bufferSubData IBO
bind GL_ELEMENT_ARRAY_BUFFER to 0
Looking forward to your reply , thanks
The text was updated successfully, but these errors were encountered: