Skip to content
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

spine 缓存不兼容 #133

Open
zdx789 opened this issue Sep 16, 2019 · 3 comments
Open

spine 缓存不兼容 #133

zdx789 opened this issue Sep 16, 2019 · 3 comments

Comments

@zdx789
Copy link

zdx789 commented Sep 16, 2019

当我使用spine lua缓存的时候
texture 计数+1
create spine animation
释放spine lua缓存
spine animation update 崩溃

原因在于,缓存spine 后,texture 计数 一直是2
当我释放lua spine 缓存后,计数器变成1

自动内存回收,导致 texture 被释放。

@zdx789
Copy link
Author

zdx789 commented Sep 16, 2019

我的解决方案,暂时为:
在lua createwithdata时, texture +1
释放spine animation后,texture -1

计数器正常

@u0u0
Copy link
Owner

u0u0 commented Sep 16, 2019

测试代码?
加群描述下问题哈,解决起来快。

@zdx789
Copy link
Author

zdx789 commented Sep 17, 2019

TIM截图20190917101154
这是我的补丁版解决方案。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants