LocalGod79 / UrsaPolaris

An Endless Sky post-main-arc universal outfitter station story
GNU General Public License v3.0
20 stars 14 forks source link

Mass driver gun causes game to slow to a crawl #8

Open schwab opened 7 years ago

schwab commented 7 years ago

I realize this weapon has custom graphics, but whenever fired the mass driver causes the graphics draw and game time to slow to a crawl. This makes it difficult to play especially around Ursa Polaris where the defense system uses that weapon to drive off constant pirate attacks. This is even on a new i7 core processor with a Nividia gpu. Watching htop shows only 2 cpu cores are used, but they are both maxed. Anyway to increase the cores allocated or otherwise improve the framerate while playing with this addon?

LocalGod79 commented 6 years ago

unfortunately, this weapon was not designed to be used by many ships in the same space. my 2014 i7 mac mini with integrated graphics did not have much trouble handling Wei after the station was completed...

that said, i have considered retooling the mass driver with new graphics - part of the problem is that each projectile breaks up into roughly 1k pieces, and your processor needs to track (velocity, intersections, etc.) all of them...believe me when i say that time was spent tuning that weapon down already...