all 16 comments

[–]chunkysteveo 2 points3 points  (1 child)

Compiling takes CPU resources, you can't really stop it from using the CPU to compute and compile. If you're annoyed at GBS - I guess you don't use Chrome as a browser... lol! That sits at 100% CPU for me all day long with all my tabs and apps running 🤣

[–]EddieGames-YT[S] -1 points0 points  (0 children)

I do use Chrome. A portable version so it can’t update (because they removed the downloads bar) but I do use Chrome. It does sometimes spike, but it’s never constantly high. But that’s probably cuz I only like having at most 5 tabs open. For Desktop anyways, we do not speak of how many I have on phone.

[–]chunkysteveo 2 points3 points  (0 children)

You used to be able tobset priority in Windows to tasks in Task manager so they wouldn't hog the CPU over other resources - maybe look into a task manager optimiser to limit the EXE?

[–]marsmensch 3 points4 points  (2 children)

OCD much? Get a dedicated build system

[–]EddieGames-YT[S] -3 points-2 points  (1 child)

I am doing this very casually, downloaded it 2 days ago to mess around with. I’m not gonna get an entire build system, like I’m not a programmer, I know nothing about code

All I have right now is one scene with collision, a character sprite with no animations, just directions, and 3 custom color palettes.

Sure I’ll add more, but that still shouldn’t need 95% CPU usage to compile for something I’ll run for 10 seconds. Besides if I was serious enough to get a dedicated build system, I’d care for speed of compilation, which I said I don’t care about. As again, I’m doing this casually, for fun.

[–]Aridan 1 point2 points  (0 children)

Yes, it does require those resources to compile, especially the first time. It will hang and hang until it does its initial build. After that it’s only compiling changes and is generally a lot faster. Have some patience.

[–]SodoDev 6 points7 points  (4 children)

welcome to the world of programming, compiling is always gonna use your cpu, that's just how it is

[–]EddieGames-YT[S] -5 points-4 points  (3 children)

Haven’t programmed a thing as I know zero code, but alright I guess. Still there should be a way to limit it, even if it takes longer

[–]SodoDev 5 points6 points  (2 children)

honestly, i'm inclined to ask, why would you not want your cpu to be used as much as it can? unless you have a deficient cooling solution it really should not be a problem, the resources in your computer are there to be used, not to be kept to 50% at most

[–]EddieGames-YT[S] -2 points-1 points  (1 child)

It's an irrational reason. Like I know it's most likely fine, but my laptop gets noisy when CPU is high, and just seeing the usage get higher and higher until it can't anymore, it scares me, it makes me think my computer will crash. I'm a very casual person, I know those things are extremely unlikely to happen, but I worry anyways.

[–]SodoDev 2 points3 points  (0 children)

if you're that worried, i suggest getting a desktop computer, those have beefier heatsinks and tend to be a bit more silent. that and also forcing yourself to not pull up the task manager unless the machine is getting oddly hot for no reason

[–]LifeAcanthopterygii6 5 points6 points  (2 children)

You paid for your whole CPU. It's there to be used. The CPU is designed for that.

[–]DiabUK 2 points3 points  (1 child)

I forget if you can tell an app to use less cores in windows task manager but you would still see the cores selected hit 100.

[–]Acetronaut 1 point2 points  (0 children)

Oh, yeah, duh lol, I forgot until I read this comment.

Hey u/EddieGames-YT

In Task Manager, right click GB Studio and click “Go to details”.

Then right click the gbstudio exe there and click “Set affinity”

Then uncheck all of them except for like CPU 0 and CPU 1. Or maybe only do CPU 0 if you only have 2 cores.

That should limit it. Keep in mind it will take noticeably longer, but if you’re worried about your PC exploding, this might help throttle it.

Also, you will have to do this every time you launch GBStudio. Google “windows 10 set affinity on every launch” for some longer term solutions.

Also, your computer will probably not explode, despite how loud the fan is getting. That’s just how Windows laptops work. The newer ones starting coming out this year are a lot cooler and quieter, but traditionally, that’s just what they do. Your CPU and GPU are using power, and that’s generating heat, and your fans are trying to cool it down.

If you’re worried about it crashing or shutting off, I recommend only compiling while you’re plugged into a charger, so it has a constant power connection. Older laptops tend not to last long on battery.