Reply To: NPC, taking lots of CPU

Home / Forums / Modders Corner / Mafia Editing / Mod Help / NPC, taking lots of CPU / Reply To: NPC, taking lots of CPU

Bank Notes: 2,000
February 15, 2012 at 12:34 pm #10085

Thanks for the replies!

 

the problem is, nothing in that scene is unnecesairy. it’s the exterior model of the ship with only the boatdeck grand staircase inserted.

 

The exact same model without the GSC is added to the dock scene. so this very complex model plus the city should run far more slower with all of those NPC’s instead of only the exterior with the GSC model and only 1 npc.

 

and the GSC model does not have that many polygons. at least not enough to make impact on the CPU usage.

 

Maybe what Matteo says is right, it could be a endless loop. your video explains very well that the game should be capable of showing many NPC’s (I like that video btw <img decoding=” data-emoticon=”” srcset=”/wp-content/uploads/invision_emoticons/tongue@2x.png 2x” width=”20″ height=”20″> )

 

This is the script I gave the captain:

[img]//i102.photobucket.com/albums/m104/mrr_03/script.jpg&key=78d13941f5bb8bb7a54b55de56ed9c487f2cf451965823c2df9fb09e117fee49[/img]

 

To see if it was the script causing it, I deleted it and tested the game.

 

FPS with the captain still alive:

[img]//i102.photobucket.com/albums/m104/mrr_03/game2012-02-1513-24-41-46.jpg&key=7a2b0e41584765869e438d72d60aac5b843678cd79a5c8a90326b4d3ebbaa0e5[/img]

 

Tragedy happened:

[img]//i102.photobucket.com/albums/m104/mrr_03/game2012-02-1513-25-23-32.jpg&key=013f86811ee246292eb113a1280aabf1bddd9b09f9efed92a53aaca4431fb4e1[/img]

 

FPS with the captain dead:

[img]//i102.photobucket.com/albums/m104/mrr_03/game2012-02-1513-26-39-17.jpg&key=c313b94c539951fc6c0fd2e9afa487d4511bba649b811927315ffcf16a27df9b[/img]