:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::
Do you want to advertise at Project Perfect Mod. Find out how to do it HERE.

The time now is Sun Jan 22, 2017 6:06 am
All times are UTC + 0
 Forum index » Modding Central » Tiberian Sun Editing Forum
Alternate Fix For TS Lag Issues
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 2 [56 Posts] View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
High Templar X
Cyborg Firebomber


Joined: 26 Apr 2010

PostPosted: Wed Jun 30, 2010 10:02 pm    Post subject:   Alternate Fix For TS Lag Issues
Subject description: Works with Windows XP SP3, Vista and 7
Reply with quote

Everyone knows about the DirectDraw DLL floating around that forces software emulation, but it does not work on Vista and 7, and that line of operating systems does not allow to you to disable DirectDraw and Direct3D through DxDiag.

Because m7 had horrendous lag issues that prevented him from even playing Tiberian Sun at a manageable level, I went out looking for a cure. After an hour of nothing, I stumbled on a usable fix.

Without further ado, here is how to perform that fix.

Prerequisites:
- Microsoft Application Compatibility Toolkit
- .NET Framework 3.5
- If you're running Windows XP, you will need Service Pack 3 (EXE | ISO).

Download the Toolkit and install it. Just default it and don't worry about anything with databases, you won't need any.

After the toolkit is installed, navigate to \Program Files\Microsoft Application Compatibility Toolkit\Compatibility Administrator (32-bit). Double click on Compatadmin.exe.

The following screen should appear:


Highlight New Database(1) [Untitled_1]. Right click on it then select Create New > Application Fix as indicated by the image.


The following screen will appear:


Fill in the text fields with the appropriate information. In this example, I was using Twisted Insurrection.

Verify the information, then click Next.

The next screen will appear where you can select the Compatibility Mode. Set it to Windows 98/Me and then click Next.


The Compatibility Fixes screen will follow. Leave the preselected options checked. The important part here is making sure that ForceDirectDrawEmulation is checked then click Next.


The Matching Information screen follows. Don't change anything here and click Finish to create the Application Fix.


You will be brought back to the Compatibility Administrator window, but you will see an Applications dropdown with your new application underneath it.

The name of the Application Fix is the text from the Program Information screen's "program to be fixed" text field so make that something useful.

After this is finished, click File > Save As to save the Appfix. When saving as, I named the SDB after the exe I was fixing, just for sanity. When that's done, you will have an SDB file in your directory.

Right-click on the database underneath Custom Databases and select Install. This should apply the patch to your EXE. To verify, open your Add/Remove Programs Wizard and search for the name of your SDB.

In this instance, I named it TI.sdb and it appears as TI in my Wizard.

That's all there is to it.


Additional thanks goes to m7 for initial testing.
_________________
Because Banshee saw fit to ban my other account for no reason, this is my new one.

Last edited by High Templar X on Thu Jul 01, 2010 1:01 am; edited 3 times in total

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Wed Jun 30, 2010 10:25 pm    Post subject: Reply with quote

Quick scan, i gather this does what the DDRAW.DLL does and without the strange black screen problem some people get?

Back to top
View user's profile Send private message
High Templar X
Cyborg Firebomber


Joined: 26 Apr 2010

PostPosted: Wed Jun 30, 2010 10:33 pm    Post subject: Reply with quote

That's the idea. It doesn't require any extra DLLs and doesn't modify the EXE as far as I can tell.
_________________
Because Banshee saw fit to ban my other account for no reason, this is my new one.

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Wed Jun 30, 2010 11:25 pm    Post subject: Reply with quote

Well, that saves me expanding and rewriting a lot of DSurface routines #Tongue

Back to top
View user's profile Send private message
High Templar X
Cyborg Firebomber


Joined: 26 Apr 2010

PostPosted: Thu Jul 01, 2010 1:02 am    Post subject: Reply with quote

Do it anyway. #Tongue

Also. Updated the tutorial with some additional requirements.
_________________
Because Banshee saw fit to ban my other account for no reason, this is my new one.

Back to top
View user's profile Send private message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Thu Jul 01, 2010 1:18 am    Post subject: Reply with quote

Dude when I found this thread my first internal reaction was: ztyping yes!

I gotta say, when I first tested the DDraw fix and watched as Win 7 displayed nothing but a black screen I was so disappointed and saddened.

I reeaally gotta try this fix. I'll post my results.

EDIT: Ok, I tried it out and um, couldn't notice any changes to performance whatsoever. The major slowdown when you build a low-cost structure such as the silo is still there, as well as the stealth-field super slowdown.
I did everything this tutorial said, and everything checked out. The install is there in the add/remove list. The database was installed to the .exe with no problems etc. Still, the performance issues remain.

I am running Windows 7, x64 (I did use the x32 version of the compatibility administrator, so there shouldn't be any problems there) and I run TS at the resolution 1280*960 (my native resolution is 1920*1200).

If you got any suggestions as to what might be the cause to this, please let me know.

Last edited by Elite_Pirate on Thu Jul 01, 2010 2:09 am; edited 1 time in total

Back to top
View user's profile Send private message
Paranoia
Cyborg Specialist


Joined: 04 Aug 2007

PostPosted: Thu Jul 01, 2010 2:08 am    Post subject: Reply with quote

I tried using the compatibility administrator to force directdraw emulation a while ago and it made no perceivable difference to the slowdown/lag. I'll try it again now, perhaps I was doing something wrong...

Back to top
View user's profile Send private message
High Templar X
Cyborg Firebomber


Joined: 26 Apr 2010

PostPosted: Thu Jul 01, 2010 4:10 am    Post subject: Reply with quote

Strange, Aro didn't get it to work either, but m7 and I have it working just fine.

Do you have the .NET Framework 3.5 installed? W7 should have it already, but check anyway. That's a requirement for this to work correctly.

[EDIT] Tested it on my brother's Win7 PC and it works for him too.
_________________
Because Banshee saw fit to ban my other account for no reason, this is my new one.

Back to top
View user's profile Send private message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Thu Jul 01, 2010 9:21 am    Post subject: Reply with quote

It's installed for sure now. Framework 4.0 for Win 7. Still not working.
_________________

Back to top
View user's profile Send private message
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Thu Jul 01, 2010 9:35 am    Post subject: Reply with quote

Same here as for Pirate. No change in performance. I'm downloading the .NET framework now. Also, for TI, must I fix game.exe (the TI unique one) or SUN.exe (the original one)?
_________________

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Jul 01, 2010 9:50 am    Post subject: Reply with quote

TI doesn't has a sun.exe anymore.
Sun.exe is just a launcher for the real executable game.exe. It's afaik completely useless.
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Thu Jul 01, 2010 9:52 am    Post subject: Reply with quote

Well, 'fixing' both exes doesn't do a damn. I really begin to wonder if my PC ain't cursed or something, with the increasing list of games that refuse to work properly...
_________________

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Tore
Plasma Trooper


Joined: 15 Jun 2006
Location: The way north

PostPosted: Thu Jul 01, 2010 10:10 am    Post subject: Reply with quote

This causes the same old black screen issue as the ddraw.dll.
_________________

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
High Templar X
Cyborg Firebomber


Joined: 26 Apr 2010

PostPosted: Thu Jul 01, 2010 3:03 pm    Post subject: Reply with quote

Elite_Pirate wrote:
It's installed for sure now. Framework 4.0 for Win 7. Still not working.

Are you making sure to actually Install the fix after saving it? You should have an SDB file in your TS directory.

Dutchygamer wrote:
Same here as for Pirate. No change in performance. I'm downloading the .NET framework now. Also, for TI, must I fix game.exe (the TI unique one) or SUN.exe (the original one)?

I just applied the fix to game.exe and it worked fine for me. I even have it working on my brother's W7 PC.

Tore wrote:
This causes the same old black screen issue as the ddraw.dll.

That's new. You sure you don't have ddraw.dll still in there?


What are you guys naming your SDB? Same as the EXE you're patching or something else entirely? I name my SDB identical to the EXE.
_________________
Because Banshee saw fit to ban my other account for no reason, this is my new one.

Back to top
View user's profile Send private message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Thu Jul 01, 2010 3:19 pm    Post subject: Reply with quote

High Templar X wrote:
Elite_Pirate wrote:
It's installed for sure now. Framework 4.0 for Win 7. Still not working.

Are you making sure to actually Install the fix after saving it? You should have an SDB file in your TS directory.

What are you guys naming your SDB? Same as the EXE you're patching or something else entirely? I name my SDB identical to the EXE.


The SDB was there in the SUN directory, it was in the add/remove list and it said that it had been installed after following the tutorial.

I previously named it Tiberian Sun Fix.sdb and it got saved like that to the SUN directory. I tried renaming it to Game.sdb and then booted up the game. Still not working.

Could you elaborate on what you think might be wrong?
_________________

Back to top
View user's profile Send private message
Dutchygamer
President


Joined: 18 Jun 2005
Location: Dordrecht, the Netherlands

PostPosted: Thu Jul 01, 2010 3:21 pm    Post subject: Reply with quote

1) Downloaded and installed the Toolkit and .NET Framework
2) Created new application fix
3) Selected game.exe
4) Set compatibility mode to Win98/ME
5) Selected ForceDirectDrawEmulation
6) Saved database as TI
7) Installed it, got message install was complete

This is what I see in my Add/Remove list:

It seems it doesn't have the TI icon like you have, nor do I have a size or a notice of when I used it Confused
_________________

Back to top
View user's profile Send private message Send e-mail MSN Messenger
High Templar X
Cyborg Firebomber


Joined: 26 Apr 2010

PostPosted: Thu Jul 01, 2010 4:17 pm    Post subject: Reply with quote

Elite_Pirate wrote:
The SDB was there in the SUN directory, it was in the add/remove list and it said that it had been installed after following the tutorial.

I previously named it Tiberian Sun Fix.sdb and it got saved like that to the SUN directory. I tried renaming it to Game.sdb and then booted up the game. Still not working.

Could you elaborate on what you think might be wrong?

I made sure to name it game.sdb as the original file name, although technically it should work with any name. I just do that for sanity. I'm not sure why it's not work for everyone else - I've had it work successfully three times already.

Dutchygamer wrote:
1) Downloaded and installed the Toolkit and .NET Framework
2) Created new application fix
3) Selected game.exe
4) Set compatibility mode to Win98/ME
5) Selected ForceDirectDrawEmulation
6) Saved database as TI
7) Installed it, got message install was complete

It seems it doesn't have the TI icon like you have, nor do I have a size or a notice of when I used it.

That's the exact steps. Not quite sure what you're forgetting or what's different between configurations.

The TI entry I had ended up being a coincidence. If done correctly, Add/Remove will look like yours since this application creates a patch.
_________________
Because Banshee saw fit to ban my other account for no reason, this is my new one.

Back to top
View user's profile Send private message
Tore
Plasma Trooper


Joined: 15 Jun 2006
Location: The way north

PostPosted: Thu Jul 01, 2010 9:09 pm    Post subject: Reply with quote

High Templar X wrote:

That's new. You sure you don't have ddraw.dll still in there?


There have never been any ddraw.dll on this computer, except the one in the Windows folder...

I use Windows 7 64-bit. C&C1, RA and RA2 had this problem too, but I solved them by disabling "Backbuffer in video memory" through CCSETUP and RASETUP, and placing "VideoBackBuffer=no" under [Video] in ra2.ini.
_________________

Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Jul 01, 2010 9:51 pm    Post subject: Reply with quote

^^adding VideoBackBuffer=no to SUN.ini doesn't helps like in RA2?
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Thu Jul 01, 2010 10:06 pm    Post subject: Reply with quote

Lin Kuei Ominae wrote:
^^adding VideoBackBuffer=no to SUN.ini doesn't helps like in RA2?


The game loads the key, but nothing is done with the variable. This is why i would have to rewrite a large chunk of DSurface routines.

Back to top
View user's profile Send private message
Elite_Pirate
Grenadier


Joined: 03 Feb 2007
Location: Sweden, Stockholm

PostPosted: Sun Jul 04, 2010 6:22 pm    Post subject: Reply with quote

So has anyone done some more research into this? Any progress?
_________________

Back to top
View user's profile Send private message
Cantdrawbutmod
Rocket Cyborg


Joined: 19 Oct 2009

PostPosted: Mon Jul 05, 2010 4:16 am    Post subject: Reply with quote

Since .sdb remind me of Visual Studio .pdb,I was wondering if maybe the missing thing could be Visual C++ runtimes or something like that (I see that as a requirement on some programs).
Could be what's missing? Question

Back to top
View user's profile Send private message
High Templar X
Cyborg Firebomber


Joined: 26 Apr 2010

PostPosted: Mon Jul 05, 2010 6:12 pm    Post subject: Reply with quote

Possibly, but it would throw an error somewhere saying they're not installed.
_________________
Because Banshee saw fit to ban my other account for no reason, this is my new one.

Back to top
View user's profile Send private message
deepblue22
Medic


Joined: 05 Dec 2011

PostPosted: Tue Dec 06, 2011 10:45 pm    Post subject: Reply with quote

Elite_Pirate wrote:
It's installed for sure now. Framework 4.0 for Win 7. Still not working.

Microsoft .NET Framework 4 does NOT include .NET Framework 3.5.

Microsoft .NET Framework 3.5 includes .NET Framework 2.0 service pack 1 AND .NET Framework 3.0 service pack 1.

Try .NET Framework 3.5 Service Pack 1 and post the result here. Smile

Back to top
View user's profile Send private message
armdn
Vehicle Drone


Joined: 31 Aug 2010

PostPosted: Sat Jan 07, 2012 9:39 am    Post subject: Reply with quote

Just want to add some interesting info. I played TS with using Wineskin (with XQuartz) in Mac OS X. This virtualization works much perfectly instead of playing TS natively. Strange thing. In my Windows XP TS has a lags with power bar animation, but in Wineskin not... Runs perfectly good and smooth.

Back to top
View user's profile Send private message
DaRTzO
Laser Commando


Joined: 18 Jan 2006
Location: Country Swing

PostPosted: Sat Jan 07, 2012 6:33 pm    Post subject: Reply with quote

Nice guide, works for RA2 as well. I posted it on ST with credit given to 'High Templar X'.

Back to top
View user's profile Send private message
Ordosherrscher
Commander


Joined: 20 Nov 2007
Location: Germany, Berlin

PostPosted: Sat Jan 07, 2012 7:15 pm    Post subject: Reply with quote

His current nickname is FurryQueen Very Happy
_________________

Think of me as Nordos, 'cause Banshee wouldn't rename me

Back to top
View user's profile Send private message MSN Messenger
FurryQueen
General


Joined: 24 Jul 2010

PostPosted: Sun Jan 08, 2012 6:13 am    Post subject: Reply with quote

or you can just call me Fen or Doctor Destiny cause I had to start using other names at /ppm/. #Tongue
_________________
NZ.org | NZ Gaming | RP
Skype: doctordestiny891
MSN: genkosygin@hotmail.com
Steam

Back to top
View user's profile Send private message
naeco06
Civilian


Joined: 24 Apr 2012

PostPosted: Tue Apr 24, 2012 9:29 am    Post subject: Reply with quote

I registered at this forum specifically while scouring the vast depths of the internet for a fix to my horrific slowdown problem when building cheap objects.

I'm using Windows Vista on a dual-core laptop and have always had this problem. cheap buildings cause my game to slow to a crawl until they finish. no other unit or expensive building does this.

I've followed the steps in this thread to a T.
I verified at each step and at the end.
I've got .netFramework 3.5 SP 1

and yet nothing.
it doesn't seem to work. pavement and silos still cause my game to slow down to an unbearable pace for several seconds. so I'm officially giving up without further suggestions. I think I've tried at least 10 different approaches to fixing the problem, and this thread was the last one I found. and still no cigar.

I'm simply going to have to stop playing Tiberian Sun until perhaps I go buy a used Gateway from 1997 that I keep in the basement strictly for playing C&C and nothing else. I've lost all hope of recapturing my childhood gaming memories.

/wrists

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Apr 24, 2012 9:34 am    Post subject: Reply with quote

Download and set up a virtual machine. In this VM install winXP. Then run TS in this VM. Wink
Your laptop should be powerful enough to have a fast VM and this way also a fast TS.

Or scrap Vista and install a better working OS like Win7 or WinXP. There is a tiny chance that this will help too. WinXP would be preferable, since you can use ddraw.dll to disable directdraw and this way make TS render on the CPU instead.
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
^Rampastein
Rampastring


Joined: 11 Oct 2008
Location: Finland

PostPosted: Tue Apr 24, 2012 11:59 am    Post subject: Reply with quote

It sounds like everything you'd need would be a different darken.shp (the graphic that gets placed on top of sidebar structure icons when you're building something). I don't have one available right now as I'm at school; I might upload one when I get home though. That problem is common and disabling the structure graying-out effect fixes it.
Quote:
Or scrap Vista and install a better working OS like Win7 or WinXP
I'd never install XP anymore as its official support will be dropped in 2 years. Even a VM would be a better solution, but disabling the graying-out effect of structure icons should be tried first since a VM requires hard drive space and some time to set up, and the performance will in most cases be lower than when running TS normally.
_________________

Back to top
View user's profile Send private message
ViPr
Railgun Soldier


Joined: 30 Dec 2004

PostPosted: Tue Apr 24, 2012 12:13 pm    Post subject: Reply with quote

By the way, I think also the viewer for 3ds2vxl doesn't work in Windows 7.

Back to top
View user's profile Send private message
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Tue Apr 24, 2012 1:57 pm    Post subject: Reply with quote

naeco06 wrote:
cheap buildings cause my game to slow to a crawl until they finish. no other unit or expensive building does this.

Like Rapastrein mentioned, a blank darken.shp file would fix this.

When you build a structure, the game places a transparent image (darken.shp) over all other structures to make it easier to tell that you can't click on any of the other buildings until the one you're building has either been constructed or canceled. Unfortunately TS has an issue with transparent things, which is why the slowdown occurs.

So to fix this, just download the zip file below and extract ecache00.mix (this contains a blank darken.shp) into your TS folder.


ecache00.zip
 Description:

Download
 Filename:  ecache00.zip
 Filesize:  232 Bytes
 Downloaded:  999 Time(s)


_________________

Back to top
View user's profile Send private message Send e-mail MSN Messenger
naeco06
Civilian


Joined: 24 Apr 2012

PostPosted: Tue Apr 24, 2012 8:40 pm    Post subject: Reply with quote

hey thanks for the quick responses everybody.
I'll try using this ecache00.mix tonight when I get home and let you know how it goes.

also I'm curious; why exactly does this issue occur?
I mean, how does a game that's like 15 years old cause itself to lag like that on a modern, powerful machine?

because obviously I never had this problem when the game was new and being played on an old Dell with WIN98. it's so weird how an overpowered machine causes it to run worse than an old box of junk would.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Tue Apr 24, 2012 10:12 pm    Post subject: Reply with quote

naeco06 wrote:
also I'm curious; why exactly does this issue occur?

If only we would knew. Many modders, exe coder and others attempted to find that out, but afaik no one ever found the real problem.

Imo it's an incompatibility between the old graphics engine and modern systems. If you force TS to do software rendering on the CPU via the ddraw.dll for WinXP it works, so it's surely a problem with the old graphics engine.
If someone would find a way to really force TS in software rendering mode on Vista and Win7 too, i guess the issue would be solved for many others too.
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
naeco06
Civilian


Joined: 24 Apr 2012

PostPosted: Wed Apr 25, 2012 4:13 am    Post subject: Reply with quote

ok so I just tried the game with that ecache00.mix that Bittah suggested and... it works.

like wow.
I had given up hope and suddenly, something so simple, it works like a charm. I'm kind of speechless.

no wait, I can think of something to say.
THANK YOU. so much.

PPM you guys are alright in my book.
I will definitely recommend you to friends and family.

now I can finally play through Firestorm again.
cheers.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Apr 25, 2012 7:20 am    Post subject: Reply with quote

keep in mind that you now don't see anymore if a unit/building with a buildlimit is still buildable. e.g. if you have already a Mammoth MKII, the icon won't be greyed out anymore, thus it looks like you can build another one.
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
Crimsonum
Seth


Joined: 14 Jul 2005
Location: The fine land of Finland

PostPosted: Wed Apr 25, 2012 9:35 am    Post subject: Reply with quote

IIRC in addition to transparency issues like mentioned by Bittah, it's got to do with the darken.shp being drawn over every building icon other than the one you build. TS is extremely inefficient in memory usage, and even loads some animations several times. Why this problem persists in newer, faster softwares, I don't know.
_________________

Back to top
View user's profile Send private message Visit poster's website
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Apr 25, 2012 9:47 am    Post subject: Reply with quote

naeco06, please test your system and see what happens, if you have 10 or more gasclouds (e.g. fire on a veinhole monster with a minigunner)
It would interest me if these transparent animations lag as well that horrible for you.

It would also interest me, if only one gascloud is already enough for some noticeable lag, or if there is a certain limit of them that shouldn't be exceeded.
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
Vladimir
Grenadier


Joined: 19 Dec 2004
Location: England

PostPosted: Fri Apr 27, 2012 6:44 am    Post subject: Reply with quote

Lin Kuei Ominae wrote:
Download and set up a virtual machine. In this VM install winXP. Then run TS in this VM. Wink
Your laptop should be powerful enough to have a fast VM and this way also a fast TS.

Or scrap Vista and install a better working OS like Win7 or WinXP. There is a tiny chance that this will help too. WinXP would be preferable, since you can use ddraw.dll to disable directdraw and this way make TS render on the CPU instead.


I've wanted to set up a VM with XP for a while now and you have just reminded me, thanks!

Back to top
View user's profile Send private message MSN Messenger
^Rampastein
Rampastring


Joined: 11 Oct 2008
Location: Finland

PostPosted: Fri Apr 27, 2012 1:31 pm    Post subject: Reply with quote

Crimsonum wrote:
IIRC in addition to transparency issues like mentioned by Bittah, it's got to do with the darken.shp being drawn over every building icon other than the one you build.
Since it only happens with inexpensive buildings, I guess it reloads/redraws those every time it draws a new frame of glock2.shp, which causes the slowdown.
_________________

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Apr 27, 2012 1:39 pm    Post subject: Reply with quote

^^you guessed correct. But in addition is darken.shp not only drawn over the few visible icons in the sidebar, but actually over all buildable buildings that exist in a kind of invisible dummy sidebar. (Best noticeable since the slowdown is the same on a tiny and huge resolution with only 4 visible cameos or 15 cameos in the sidemenu)

An alternative might be a reduction of the gclock2.shp frames.
If this has only 2 frames, it wouldn't cause darken.shp to be updated every few microsecond.
But i'm not sure if the amount of frames for gclock2 is hardcoded to 55. (But if it works, it would be a work-reduction for the game of up 90%)

\EDIT
btw, using the ddraw.dll from hifi, i was astonished to notice that it also allows TS to run in a window mode under Win7. Surprised (and no stupid 16bit desktop necessary)
Unfortunately does it has some small bugs, like the mouse cursor being slightly off from the click-location or that menus don't really work.
But it can load already fine the intro video and the main menu.
Thus i think with a bit more work done by hifi, he would be surely able to enhance the dll to even support TS.
Since it allows the game to render with the gdi software renderer, this should also make an end to incompatible graca-hardware and lags caused by this.


TIwindowed.jpg
 Description:
in ddraw.ini make sure mhack=false is set (default is true), else it gives a black screen with an exception
 Filesize:  374.76 KB
 Viewed:  22459 Time(s)

TIwindowed.jpg



_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
CCHyper
Defense Minister


Joined: 07 Apr 2005

PostPosted: Fri Apr 27, 2012 2:36 pm    Post subject: Reply with quote

Yea, me and hifi tested its compatablity some time ago, but there is something he cant work out. Something to do with GDI rendering and how TS uses it.

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Apr 27, 2012 2:41 pm    Post subject: Reply with quote

CCHyper wrote:
there is something he cant work out

damn. Sad
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
Bittah Commander
Defense Minister


Joined: 21 May 2003
Location: The Netherlands

PostPosted: Fri Apr 27, 2012 4:19 pm    Post subject: Reply with quote

Lin Kuei Ominae wrote:
An alternative might be a reduction of the gclock2.shp frames.
If this has only 2 frames, it wouldn't cause darken.shp to be updated every few microsecond.
But i'm not sure if the amount of frames for gclock2 is hardcoded to 55. (But if it works, it would be a work-reduction for the game of up 90%)

I'm pretty sure most would agree that (even if it works) using a 2-frame gclock2.shp is a lot less practical than using a blank darken.shp...
_________________

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Fri Apr 27, 2012 4:34 pm    Post subject: Reply with quote

Well, you can use 8 frames, which would be enough to show the progress of the construction and still reduce significantly the amount of cameoupdates.
You could also enhance this by some special new timer image, instead of a simple rotating thing showing for example a percentage number.

the blank darken.shp simply has the big problem that you can't see if a buildlimited object is still available or not.

\EDIT
reducing the gclock frames doesn't work. the game seems to be hardcoded to use 55 frames.
It plays through the frames and then simply stops at the last frame until the construction is done.
_________________
SHP Artist of Twisted Insurrection. Main Nod building SHP creator.

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant unit, 1 Scrin unit, 1 GDI building

Tools
TMP Shop
C&C Executable Modifier

Back to top
View user's profile Send private message
^Rampastein
Rampastring


Joined: 11 Oct 2008
Location: Finland

PostPosted: Fri Apr 27, 2012 5:24 pm    Post subject: Reply with quote

Lin Kuei Ominae wrote:
(Best noticeable since the slowdown is the same on a tiny and huge resolution with only 4 visible cameos or 15 cameos in the sidemenu).
For me it doesn't seem to be so. I'm not sure if it's just because lower resolutions are much less demanding though (giving the game more time for drawing the darken.shps). The slowdown is very significant at 1280x1024 but at 800x600 it's nearly unnoticable.
_________________

Back to top
View user's profile Send private message
naeco06
Civilian


Joined: 24 Apr 2012

PostPosted: Sat Apr 28, 2012 10:07 am    Post subject: Reply with quote

Lin Kuei Ominae wrote:
naeco06, please test your system and see what happens, if you have 10 or more gasclouds (e.g. fire on a veinhole monster with a minigunner)
It would interest me if these transparent animations lag as well that horrible for you.

gasclouds from a tiberium vein also cause lag, but not anywhere near as bad as the construction of cheap buildings.

and it only starts to lag when then are a bunch of clouds. anything past 6-8 clouds causes some stagger. like I said though, it's not half as bad as the building lag was.

Back to top
View user's profile Send private message
fr1dd
Civilian


Joined: 02 Jul 2012

PostPosted: Mon Jul 02, 2012 3:11 pm    Post subject: Reply with quote

I have tested the Compability Administrator with countless settings and I can not get any improvements.
I also manually added the regkeys in Win7 registry to control the DirectDraw force emulation and they worked but blackscreen followed as result.
But then I used the Command & Conquer Graphics Patcher - http://www.stuffhost.de/files/cnc/CnCPatcher.html and the lag issue totally disappeared.
This patch forces the game to not allocate surfaces in VRAM in the first place.

Back to top
View user's profile Send private message
Krow
Commander


Joined: 30 Jan 2010
Location: Malaysia

PostPosted: Mon Jul 02, 2012 4:06 pm    Post subject: Reply with quote

And the owner of the patch also posted it in this forum.
_________________
Team Black wrote:
interesting seeing your voxel work. They're still better than Aro's!

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 2 [56 Posts] Goto page: 1, 2 Next
View previous topic :: View next topic
 Forum index » Modding Central » Tiberian Sun Editing Forum
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.7961s ][ Queries: 14 (0.3166s) ][ Debug on ]