-
Notifications
You must be signed in to change notification settings - Fork 84
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
I'd like your opinion on the performance #22
Comments
Hey. I see only two options to improve performance. First, and obvious one, is to move to a new GUI system. Drawing will be definitely faster, but repainting slower, because there is now way to use Graphics class in terms of WinForms. Like, you can't just call FillRectangle(brush, x, y, w, h) and repaint control. You will need to create objects, add Image/Button/etc classes and it should be done on every PerformLayout event (like resizing a control). It's just overhead. But it can be done if all methods in Graphics will return GameObjects so you can use it later for repainting. And I think it's bad idea, it will be something different other than winforms. And the second option is kinda harder. I need to do something like SpriteBatch in XNA/Monogame, It will allow me batch controls when I need to repaint them. I believe speed can improved like 2 to 3 times. The only way to achieve it is write plugins for every build target in OpenGl where I'm not really competent. So I'm kinda stuck right now. May be Unity devs will give us something later, like GL.DrawArrays, I dunno. |
Thank you for taking the time to answer me! I really wish I could help on this project, because I think it's great, unfortunately I don't know if I would be of any help and especially I lack free time to do it too. Also, ensuring compatibility for iOS "Metal", Android and WebGL is more than time consuming (I've had the problem lately with a compute shader and a StructuredBuffer under Metal, these differences are just an absurd waste of time). |
Okay then. This project will slowly improve anyway, until we decide to move to some other framework or graphic library. And then I'll probably stop commiting here. |
OK, when you talk about another graphic library you mean something like bgfx or something ? |
Looks not bad, but I still thinking. As Unity plugin version for web build is deprecated for most browser, we considering to move to anything with WebGL support as target platform. And preferably using C# as primary language. |
Hi
I regularly visit this repo because WinForm is exactly what I miss the most right now in Unity.
Big kudos for your wrapper !
The only thing that prevents me from using it now is that it seems a bit greedy in performance.
Do you have any suggestions or planning to improve on that?
I wonder if the new features of Unity 2018 could be an « easy way » to address this point.
Anyway, thanks for all !
The text was updated successfully, but these errors were encountered: