Jump to content


Photo

Consistent pause/hang playing on Wine under Linux w/bags


  • Please log in to reply
7 replies to this topic

#1 ahungry

ahungry
  • Modder
  • 18 posts

Posted 31 August 2011 - 07:38 PM

Hello all,

When playing on Wine under Linux, when I have a character in the party with bags in the inventory the game consistently hangs every ~2 seconds or so for about half a second. Does anyone know of a fix short of avoiding bag usage (this does fix it)?

I have already run the tolower script for the directory on my Linux install.

#2 Wisp

Wisp
  • Modder
  • 1353 posts

Posted 31 August 2011 - 10:04 PM

Have you biffed your game? Having (a lot of) files in the override is bad for performance, since Wine has to emulate case-insensitivity. Maybe it's got nothing to do with your problem, but it's worth trying if you haven't.

#3 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 01 September 2011 - 12:17 PM

Also, if the bag store (.sto file) capacities are set to supposedly "unlimited" (-1 or 65535), this can cause a memory leak; setting it to ~32k or less seems to avoid this.

Edit: check your WeiDU.log for BG2 Tweaks' Unlimited Bags or whatever it is if you're not sure whether this is implemented, or use an editor to check some bag*.sto files.

Edited by Miloch, 01 September 2011 - 12:19 PM.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#4 ahungry

ahungry
  • Modder
  • 18 posts

Posted 05 September 2011 - 09:47 PM

Well, after searching through the bag files with Near Infinity and trying various other things, I ended up narrowing it down to the Haiass mod (whether I accept him into the party at Candlekeep or not).

If I never initiate the first Haiass encounter, I can have every slot filled with bags of holding and experience no stutter. After initializing Haiass encounter, each bag adds to the periodic delay that occurs every 2 seconds or so.

#5 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 07 September 2011 - 10:31 AM

I don't know if you're the same poster, but see here for my response. I'm quite sure the same thing would apply to any mod (and there are loads) that uses PartyHasItem().

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#6 ahungry

ahungry
  • Modder
  • 18 posts

Posted 07 September 2011 - 07:11 PM

Hi Miloch, that was me. I could not remember my password and noticed I replied anonymously after the fact with a different name I use on forums.

The only thing I can think of that might be the cause on Linux/wine and not an issue on Windows is that Linux is case sensitive while Windows is not. While Wine emulates the case insensitivity, I have read that can also add some slowdown.

Grepping things before using Linux, I notice a huge slowdown using the -i tag (insensitivity) so I could see that contributing.

Thanks for the replies.

#7 Miloch

Miloch

    Barbarian

  • Modder
  • 6573 posts

Posted 10 September 2011 - 07:39 PM

Well, did you biff your game (i.e. do you have Generalised Biffing as one of your last mods in your WeiDU.log) as I posted in the other thread? Also, you probably want to tolower your override folder before doing that.

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#8 ahungry

ahungry
  • Modder
  • 18 posts

Posted 11 September 2011 - 07:34 PM

Well, did you biff your game (i.e. do you have Generalised Biffing as one of your last mods in your WeiDU.log) as I posted in the other thread? Also, you probably want to tolower your override folder before doing that.


I had tried tolower and biffing. In the end to resolve I simply avoided entering the room where the first Haiass event triggers.