-
Notifications
You must be signed in to change notification settings - Fork 223
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
My GPU on my Mac overheats when running Overlap2D #413
Comments
(I also posted this issue on the Overlap2D community forums.) |
Yes I have the problem too, i test in my imac and my macbook pro retina display. i think u must fix this problem. thanks KevinNorth I check in my ram, cpu process but no problems, apparently the problem is in the GPU |
I'm still new at this, I have not see the graphical calls, but it could be a java issue. |
I am also experiencing high CPU usage with Overlap2D and also VisEditor when these 2 and minimized on OS X. Please fix the issue on Overlap2D. |
CPU or GPU? |
I have a mac retina early 2015 which has intel iris graphics 6100. I am 100% the issue is only on macOS because I just tried 5 minutes ago Overlap2D in a Windows 7 virtual machine and I get no issue in Windows, just on OS X. I use AppPolice(in macOS) to limit the cpu usage of the Overlap2D process which I keep it at 20%. Therefor I do not permit it to go higher than that, but it is using resources for no reason and I read on this forum that it has something to do with the FPS which tries to go over 60 fps. The thing is that in OS X Mavericks and macOS Sierra all apps are limited to 60fps and they can not go higher, whereas in older OS X versions this limitation was not imposed. I used an app to see how many FPS I get when running Overlap and it always shows me 60fps and sometimes 61.5 and it looks like something is struggling to keep the FPS below 60. In other apps when running them I get around 10 fps when moving the mouse. It is definetly something with the rendering, unfortunately I have no idea how to fix it. I read here that it was fixed in some early release but it doesn't seem to the case and I am not the only one experiencing this issue. I hope my information will help fix this issue somehow, because Overlap2D is awesome :) |
Can you build from source? |
Well I just downloaded the sources and I imported the gradle projects in my eclipse workspace(common-api,master,runtime-libgdx, extension and spine-runtime-libgdx). The master project and the spine-runtime-libgdx both are marked as having issues because of some missing imports. If you'll tell me where to change the code to make it work I'll give it a try to see if it'll fix the problem and I will let you know :). |
I am not even sure it is this file, I was just looking a bit on how this is done and trying to find bugs on the underlying libs:
and based on these threads: |
Ah yeah, there were some instructions on the forum on how to build from source: |
I get too many errors(100) after running ./gradlew assemble |
I downloaded the source files and after importing the repo in eclipse it can not find the main class to run. In Run Configurations I can't select it. I guess I am supposed to run ./gradlew assemble first and after that it'll generate some other files. I don't know. |
use git and follow the advice on the forum to set the branch |
I get this error when compiling: "IdeaProjects/overlap2d/spine-runtimes/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Animation.java:770: error: cannot find symbol " Also it can not run the project because it can not find setSize() |
git clone https://github.com/UnderwaterApps/overlap2d.git for me the error went away |
well I got my clone using git from IntelliJ this time and at "./gradlew assemble" I get the failed message cause of some methods like setSize() which could not be found I ran "./gradlew assemble" manually. Run -> main gives me the same issue. |
yeah, I don't use intelij to build anymore, just command line |
this time I used the terminal to clone the repo and I got the same error :| |
did you just run the commands as pasted? or did you use intelij to build? The first gradlew assemble will fail, but the build will work after that branch is checked out |
I recorded my terminal actions. You can watch the video clip here, it is a dropbox share link->. https://www.dropbox.com/s/3iuf47bt7rlmimm/Issue.mov?dl=0. |
./gradlew assemble is expected to fail. Go ahead and do this after it fails: |
ok it opens Overlap after building and ./gradlew run. |
now you can play with the settings above: public boolean vSyncEnabled = true; <- possibly try with false |
ok I'll try at 12 o'clock cause I have to go to sleep. It is 3:30am where I live. I guess I have to replace the .jar dependency with the modified one(new jar compilation from https://github.com/libgdx/libgdx/tree/master/backends/gdx-backend-jglfw/src/com/badlogic/gdx/backends/jglfw ), right? cause the .class can not be changed. |
I can't change the vSync variable because it is in a .class file and it is a Gradle dependency which I guess it means that it always downloads the requested .jar and it overwrites it. |
I'm trying to decompile the file However, I have never done java before or intelij or whatever so it is a bit of a hard effort for me. |
I tried to integrate a Scene into my project but the tutorials are beyond outdated |
Hi guys! can I help in any way? what has to be changed to fix this? I am not sure why you try to decompile things, if the source is already here to change things in it? |
@azakhary you could try to play with the vSync feature to turn it off just to see if makes a difference on macOS. public boolean vSyncEnabled = true; <- possibly try with false |
I do remember that it is related, and I tried something like that but it broke something else, while fixed the CPU load. I'll try from osx machine when I get to office. But if you guys can just run it from sources, then take a look at Main.java ( https://github.com/UnderwaterApps/overlap2d/blob/master/overlap2d/src/com/uwsoft/editor/Main.java#L69) maybe you can configure vSync for JglfwApplication or config (one of them has to have that) |
@azakhary I'll try |
with 60,60,60 it still doesn't get hot but my FPS counter now shows it is using 68 fps to render the program. The process of Overlap doesn't go below 9% which means it is using resources that it should not use. It drains the battery faster. |
I got |
@bruceloco I opened your jar and I get the same behaviour as before: black screen when opening and then after a couple of seconds it shows the content. I also get low fps and low cpu usage whether if the program is minimized, in or not in focus. |
It seems to work ok despite the black screen at which one is supposed to wait a little. |
i have it opened for a minute and nothing |
@bruceloco I switched between programs and only after that it showed up the content. |
whats your jdk? |
Maybe it's the you run it? double clicking, versus right click open or some other way, may make it go to background during the startup sequence, and silently come back, leaving jglfw think that it's still on background. imho it's either osx version difference, or just the way the app is executed. |
@azakhary @meonlineonmess has the same behaviour as me running on his system with the app I built. |
Ok, for OSX it works, stays a couple seconds black but works |
I use macOS Sierra 10.12.2 and Oracle JDK java version "1.8.0_111" |
I wonder if VisEditor suffers from the same issue with the black screen. It also has the high CPU usage too and I saw the source code and it's the same issue there too with LwglApplication... Maybe after adding the settings for VisEditor like in Overlap2D, it will suffer from the same issue with the black screen. This could be a Hint. |
also, I was just reviewing badlogic's repos and the lwjgl vs jglfw, and the jglfw repo has not been updated in 3 years. |
@meonlineonmess lets keep the issue here based on overlap2D. |
Also for future reference: |
@bruceloco As far as I remember BeamSyncDropper when I used this app it did not work in El Capitan or Sierra because the rendering was changed in these versions. |
@meonlineonmess yeah, don't see any updates on the project for 2 years. |
@meonlineonmess have you tried using lwjgl on mac? |
@bruceloco no I didn't use it before |
can you try with these settings? Thanks |
there was a reason we used Jglfw instead of Lwjgl. if you change it, other things will not work. |
@azakhary does this include lwjgl3? or the standard lwjgl? you use it on windows, so there might be a mac bug or two which could easily be addressed no? |
standart lwjgl. so yeah, 3 might be good. dunno |
I can't sadly remember what exactly was not working... so maybe if you guys get it working, and confirm that everything is ok.... then it's worth trying. |
Will Overlap2D ever support Box2D Joints? and when will it get out of the Alpha version? |
Sadly I am afraid, I am occupied currently with other projects. So can't say anything. |
Adding Box2D joints and keeping it free will surely increase the programs popularity which means Ads can generate revenue. Just keep in mind the fact that to develop a game requires some time and this means Overlap2D will be kept opened generating revenue through Ads Impressions. |
@meonlineonmess add the feature on the program. |
When I run Overlap2D on my Mac, my GPU quickly reaches nearly 100ºC and stays at that temperature until I close the editor. This happens even when I leave Overlap2D running in the background without opening a project.
Here's a screenshot showing the temperature of my GPU when I'm running Overlap2D:
Notice my fan speeds and the "TCGC PECI GPU" temperature. The CPU is doing fine.
Here are my computer's specs:
General information:
GPU:
Molitor:
My computer is running Java 1.8.0_74 as its JRE.
The text was updated successfully, but these errors were encountered: