Please login or register.

Login with username, password and session length
Advanced search  

News:

This forum provides RSS feed. To query recent posts use this url. More...


Author Topic: WME Debugger Console  (Read 2442 times)

0 Members and 1 Guest are viewing this topic.

SBOVIS

  • Frequent poster
  • ****
  • Karma: 0
  • Offline Offline
  • Gender: Male
  • Posts: 404
  • FORGET REALITY SURRENDER TO YOUR DARKEST DREAMS
    • View Profile
    • LIMBO of the LOST
WME Debugger Console
« on: January 23, 2007, 01:04:27 PM »

Firstly thanks for this great utility, helps alot track problems etc.

But I have just one question, does running lots of scripts at runtime slow a game down?
I can see by the debugger that lots of scripts are running at runtime but not always used for certain scenes.

If using only the scripts needed for a scene, would this speed up runtime?
The main ones are the individual item scripts of which I have quite a few. These seem to be running even though in many scenes they are not needed.

Just a thought, thats all.


Many thanks
Logged
kind Regards
Steve Bovis
MAJESTIC STUDIOS

metamorphium

  • Global Moderator
  • Addicted to WME forum
  • *
  • Karma: 12
  • Offline Offline
  • Gender: Male
  • Posts: 1511
  • Vampires!
    • View Profile
    • CBE  software s.r.o.
Re: WME Debugger Console
« Reply #1 on: January 23, 2007, 01:43:45 PM »

yup. Every running script eats the cpu time (how much depends of course on the fact how complex the script is).

The best way is to attach scripts only to Scenes or entities, if they are not used globally and also using DetachScript if
you no longer need the global ones.

Just my 2 cents. :)

Logged
J.U.L.I.A. Enhanced Edition, Vampires!, J.U.L.I.A., J.U.L.I.A. Untold, Ghost in the Sheet

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: WME Debugger Console
« Reply #2 on: January 23, 2007, 02:04:27 PM »

The important thing here is whether the script is actually doing something or not. Running scripts (such as game_daemon.script) do take CPU power, but most of the scripts are dormant and they are only waiting for events to come. That's the case of the item scripts and most of the other scripts typically. These dormant scripts take insignificant amount of CPU power.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave
 

Page created in 0.037 seconds with 23 queries.