Aller au contenu

Photo

[Repost] Solving the combat lag issue


  • Veuillez vous connecter pour répondre
15 réponses à ce sujet

#1
dan_upright

dan_upright
  • Members
  • 39 messages
(I'm reposting this since we've now got a dedicated scripting forum.)

I've reason to believe this issue (described below) is a scripting one and therefore might be fixable with a mod.

The issue, for anyone not having it, is that in a fight with more than a dozen or so participants, combat events get increasingly delayed over time. It's not a problem with the overall game performance - framerate is fine, interface is responsive and even moving around continues to work in real time. Only events that have an effect on creatures get slower.

For example, if you give an attack order, your character will move to the target mob immediately and start performing attack animations, however there'll be no health changes or damage numbers until much later.
Similarly, if you cast a spell, you'll see the projectile fly to the target, but the effect will be delayed. (Fireball is the easiest to see this with, the projectile vanishes then later on there's an explosion).

It looks to me like there's an event queue being overloaded and causing a backlog, but I couldn't say exactly  where.

Anyone got any ideas on what might be up?

Modifié par dan_upright, 20 novembre 2009 - 09:12 .


#2
Qkrch

Qkrch
  • Members
  • 128 messages
No idea, but it really should be a thing that Bioware should talk about it. That creature lag (you defined it better) is a pain.

#3
dan_upright

dan_upright
  • Members
  • 39 messages

Qkrch wrote...

No idea, but it really should be a thing that Bioware should talk about it. That creature lag (you defined it better) is a pain.

True enough, but trying to narrow down the causes ourselves, even if it doesn't provide a way to fix the problem via a mod, might at least help the guys at bioware figure it out.

Anyway, I've been poking about and in a custom test module I can summon about 20 skeletons without any lag occuring (or at least 50 giant rats, I can survive them a lot longer than skeletons but their ai might not be as complex).

In my single player save (just before a large battle) I've noticed that disabling tactics for my entire party reduces the lag quite a bit, but still doesn't eliminate it.

#4
Gralamin

Gralamin
  • Members
  • 45 messages
Are you using any addin's that use the main_core script? It has been noted to cause some performance issues, and should always be set to none if you are not using it. Otherwise, I'm not sure why.

#5
dan_upright

dan_upright
  • Members
  • 39 messages

Gralamin wrote...

Are you using any addin's that use the main_core script? It has been noted to cause some performance issues, and should always be set to none if you are not using it. Otherwise, I'm not sure why.

It's module_core you're thinking of and this problem happens with no mods installed.

#6
Axe_Murderer

Axe_Murderer
  • Members
  • 279 messages
Are you sure this isn't just a display issue? I mean, maybe the changes are applied instantly but it takes too long to show the results. If you can recreate the lag by trying to make a change like maybe increasing health from a poultice maybe you can test when the health is actually changed vs when the change is displayed on the screen. If it is only a display lag issue then it isn't so bad. Needs fixing for sure, but at least it isn't changing game play other than fooling you into possibly making wasteful choices.


#7
shooki

shooki
  • Members
  • 10 messages
I'm having the exact same problem tried lowering settings to minimum still unplayable.

Would be nice to have a fix plz !

#8
Kynroyka

Kynroyka
  • Members
  • 17 messages
/bump

Interestingly enough, in my game this only started after installing the latest patch.
I had no problems during my previous playthroughs, but now the big end-game battle is nearly impossible.
Spells taking up to seven seconds to apply, melees simply standing around (and no, they are not on Hold :-)
and of course, wipe after wipe despite two mages casting heal and group heal and everyone downing greater health poultices.

I'm only playing with the official addins, no background applications, and changing the settings didn't do anything. So...yeah.
Almost feels like playing WoW now. <_< (*casting*casting*casting*hithithit*You are dead*)

#9
anakin5

anakin5
  • Members
  • 258 messages
I made some fixes in my mod concerning the tactics system. Sometimes, it also include performance issue because I noted some strange things in scripts code . If you are able to test how performances are changed with this mod....

#10
bejopa79

bejopa79
  • Members
  • 3 messages
/bump



ya i just got finished trying the final battle against the arch demon and I literarily cannot finish it because of the lag. Any heals or spells i try to cast happen 20 secs after I trigger them. Does this game take advantage of multi core proccessors and if so is it automatic or do u have to enable it? I've never had this problem in a single player game before, reminds me of the first Vox raids in EQ....

#11
fluffyamoeba

fluffyamoeba
  • Members
  • 264 messages
The game *does* take advantage of multiple cores. But the scripting engine is single threaded. This would explain why people can move around etc even though the combat is lagging behind as AI and combat is handled by scripting.

However, working out the bottlenecks would take a very long time if it's not being caused by one thing. A lot longer for us than for Bioware as they can profile the scripts better than we can. :(

#12
anakin5

anakin5
  • Members
  • 258 messages
" But the scripting engine is single threaded"



How do you know that ?

#13
BelSirk

BelSirk
  • Members
  • 191 messages
the problem isn't singe or multiple thread for scripts, i'm playing with a Pentium 4 and have problem only on the final battle

#14
fluffyamoeba

fluffyamoeba
  • Members
  • 264 messages

anakin5 wrote...

" But the scripting engine is single threaded"

How do you know that ?


Because I asked a BioDev?

Also, it was highly unlikely to be multithreaded for obvious reasons.

BelSirk wrote...

the problem isn't singe or multiple
thread for scripts, i'm playing with a Pentium 4 and have problem only
on the final battle


That would make no difference. How many cores you have doesn't impact the scripting because it is single threaded.

Modifié par fluffyamoeba, 07 janvier 2010 - 01:19 .


#15
BelSirk

BelSirk
  • Members
  • 191 messages
Well.. playing a new game at Ostagar tower i find the problem when get 2 soldiers (at tower's entrance) was a very low lag, but was there, though did not see the problem with the marbari dogs ... the bug must be on hardcore as the game proccess the list of actions, maybe a infinite loop coming from certain creatures ? anyway it's something Bioware must fix soon

#16
Tommy Sun

Tommy Sun
  • Members
  • 1 messages
I played the fist run with a torrent version and it works fine. Then, on the same PC, I went for second run with a official version I purchased to show the support for this epic game, its unplayable due to this issue. Very very ironic, isn't it?