extreme cpu usage

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

extreme cpu usage

by jordan4ibanez » Fri Jan 20, 2012 13:10

i have a good pc..but when we detonate alot of nukes i can hear my hard disk crying and ONLY THE GAME lags..i can do other things normally...but the game just locks up
Last edited by jordan4ibanez on Fri Jan 20, 2012 13:11, edited 1 time in total.
If you can think it, you can make it.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Jan 20, 2012 13:38

There is no extra Thread for the Lua Operations, so it lags
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Fri Jan 20, 2012 13:42

sfan5 wrote:There is no extra Thread for the Lua Operations, so it lags

Hmm, that's bad. Why doesn't every mod run in its own thread?
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Jan 20, 2012 13:43

neko259 wrote:
sfan5 wrote:There is no extra Thread for the Lua Operations, so it lags

Hmm, that's bad. Why doesn't every mod run in its own thread?

idk, someone should make a patch
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Fri Jan 20, 2012 13:44

If some one does this will fix world edit for large areas
If you can think it, you can make it.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri Jan 20, 2012 13:46

jordan4ibanez wrote:If some one does this will fix world edit for large areas

Right!
Lua Mods should be at least be able to create and run Threads
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Fri Jan 20, 2012 13:51

I don't think mods should do this. Such things are the purpose of the engine.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

User avatar
jordan4ibanez
Member
 
Posts: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Fri Jan 20, 2012 14:50

neko259 wrote:I don't think mods should do this. Such things are the purpose of the engine.

NO..certain mods run better within other threads..some run better on their own thread
If you can think it, you can make it.
 

User avatar
neko259
Member
 
Posts: 769
Joined: Sun Jun 19, 2011 06:51

by neko259 » Fri Jan 20, 2012 16:00

Then mods should start in their own thread and be able to created even more threads by their own.
Of course number of threads must be limited to prevent system overload.
Bitcoin donations: 18r66dJmUjwTmWRTFnorpGMzs8d4B8jzbw
 

randomproof
Member
 
Posts: 214
Joined: Thu Nov 17, 2011 06:31

by randomproof » Fri Jan 20, 2012 17:15

Most of the mod functions are done in callbacks from the server, so running each mod in a separate thread really doesn't make sense. You would also have problems with two or more threads reading/writing the map at once. It would be a locking nightmare (only one thread could read or write to the map at once) and you would lose performance not gain any.
Last edited by randomproof on Fri Jan 20, 2012 17:17, edited 1 time in total.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 4 guests

cron