esfml icon indicating copy to clipboard operation
esfml copied to clipboard

Double allocation when loading files with asset library

Open intjelic opened this issue 12 years ago • 0 comments

A double allocation and memory copy is performed when loading files with asset library. Currently, it first copies a file into memory, then call loadFromMemory() which copies our fresh copy, again. We should use sf::InputStream and use loadFromStream() instead.

intjelic avatar Dec 18 '12 14:12 intjelic