Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.
This repository was archived by the owner on Mar 11, 2021. It is now read-only.

CCContentManager.SharedContentManager.GetAssetStreamAsBytes(fontName, out fontName); cause too much memory overhead #295

@imkow

Description

@imkow

label_problem

It causes my app too slow loading a scene with several CCLabel. Unacceptably slow.
The image shows the data collected by Xamarin Profiler. That's memory allocation when using CCLabel with Chinese TTF font. I checked your code in CCLabel-Android.cs (running on Android), GetAssetStreamAsBytes in CreateTextSprite() does nothing but check whether the font file asset can load. Am I right? Please fix the memory overhead problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions