-
Notifications
You must be signed in to change notification settings - Fork 36
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
Reduce number of dependencies #54
Comments
Hi Aurélien, yeah, sure, it's possible, if you are doing everything yourself, theoretically we could get rid of:
Also, a similar stuff came out few days ago.. We could create a branch for this purpose, since I guess this might benefit also other people.. would you be maybe available to take care of it? :) |
I just gave a try, here what I found:
|
Uh, yeah, uno is using them.. Well, one way for sure would be to manually replace all the uno imports
Honestly I don't like the idea of having the tests in another project, they are quite important as a play ground to try the library features and to fix bugs.
Yeah, the whole folder weights 22.6 MB, but one font itselft, With a potential Ps: in your app are you using lwjgl anyway, don't you? |
Sorry, I will not maintain that branch myself, my need is not high enough for that, and now I will have to focus on some other project. Just sad that my zip of 40Mo contains 30Mo of UI; Yeah, I use lwjgl, but only the minimal vulkan part. I don't use opengl, nor openal. |
Hi, @Ealrann If you don't need OpenGL and you don't use any part of this library that depends on it you should be able to simple delete the lwjgl-opengl.jar file and not include it in your project. Of course it will then crash if you call any method in the library which in turn relies on any code inside the lwjgl-opengl.jar file. If you are using gradle instead of manually doing it you should be able to do something like this.
You can do this for e.g. OpenAL as well. However you seemed mostly concerned about file size. There is also a new alternative version of the library without the extra fonts and should be a lot smaller (~1 MB). It's not part of any release yet, though you can still try it, just add Currently only the latest commit has this version, but example.
|
Hi @chrjen , Oh my god, it's way better with the light branch, and with the "exclude group". Thank you.. Here the one I use for now :
You seems to focus a lot on the size of the font (and yes, it's important), but don't forget the dependencies. Even in the Windows build, you seems to link to many unneeded jars like openal-linux (??), spirv, armv6hf or macos natives... It's not a big deal, but for the lightweight projects, it's something. But whatever, your solution totally fit to me, so thank you again :) |
Thank you for the feedback, we'll take that under consideration. If it solved your issue consider closing it. |
Hello,
I'm questioning about how to reduce the size of my build, and now I'm looking about this imgui port. I use it with vulkan, so I have to call
getDrawData()
, and make the draw myself.In my context, is that possible to reduce the number of dependencies ? Maybe I don't really need all the LWJGL-3.1.7-SNAPSHOT stuff needed by imgui.
The text was updated successfully, but these errors were encountered: