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

Updated to the latest version of StbSharp #6131

Merged
merged 1 commit into from Jan 12, 2018
Merged

Updated to the latest version of StbSharp #6131

merged 1 commit into from Jan 12, 2018

Conversation

rds1983
Copy link
Contributor

@rds1983 rds1983 commented Jan 5, 2018

This PR updates MG's version of StbSharp to the latest one.
Hopefully it would fix #6114 with loading textures from multiple threads. I've replaced Dictionary with ConcurrentDictionary and updated my testing framework, so about 800 textures were simultaneously processed from 10 different threads. There were no problems.
Also latest Stb can write JPGs. So TinyJpegSharp had been removed.

@dellis1972
Copy link
Contributor

build

@rds1983
Copy link
Contributor Author

rds1983 commented Jan 12, 2018

build succeed

@dellis1972 dellis1972 merged commit 5a7ad7f into MonoGame:develop Jan 12, 2018
@rds1983 rds1983 deleted the new_image_write branch January 12, 2018 19:59
Jjagg pushed a commit to Jjagg/MonoGame that referenced this pull request Jan 17, 2018
@vpenades
Copy link
Contributor

@dellis1972 Could this PR indirectly fix #6093 ?

@dellis1972
Copy link
Contributor

dellis1972 commented Jan 18, 2018 via email

@rds1983
Copy link
Contributor Author

rds1983 commented Jan 18, 2018

As far as I know, StbSharp is only used in the Texture2D.FromStream. And only in the DesktopGL version of MG, as #6008 hadn't been merged yet.

nkast pushed a commit to nkast/MonoGame that referenced this pull request Jan 28, 2018
nkast pushed a commit to nkast/MonoGame that referenced this pull request Jun 26, 2018
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

Successfully merging this pull request may close these issues.

MonoGame.Utilities's Operations.Malloc is not threadsafe, and so Texture2D.FromStream isn't
3 participants