Author Topic: Completely Getting Rid of Labels  (Read 990 times)

Suno_Regin

  • Forum Addict
  • *
  • Posts: 2445
    • View Profile
Completely Getting Rid of Labels
« on: February 23, 2008, 01:06:36 am »
I remember reading somewhere that labels cause a lot of lag. I'd like to remove them (not hide them, but remove them), but I can't find the post that mentioned how to. Can anyone help me figure out how to do it?

Dajoji

  • Veteran
  • *
  • Posts: 1058
    • View Profile
Re: Completely Getting Rid of Labels
« Reply #1 on: February 23, 2008, 01:09:27 am »
You can set it up with your options window (options/graphics/labels/invisible).


Suno_Regin

  • Forum Addict
  • *
  • Posts: 2445
    • View Profile
Re: Completely Getting Rid of Labels
« Reply #2 on: February 23, 2008, 01:13:38 am »
And would this actually get rid of them, or just hide them? The word "invisible" threw me off there.

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: Completely Getting Rid of Labels
« Reply #3 on: February 23, 2008, 01:14:48 am »
I remember reading somewhere that labels cause a lot of lag. I'd like to remove them (not hide them, but remove them), but I can't find the post that mentioned how to. Can anyone help me figure out how to do it?

the code that was posted does not make enough difference, the majority of the lag ingame is produced by the maps not labels and the next release will have new labels to help with some issues that the labels had

http://hydlaa.com/smf/index.php?topic=30872.0
« Last Edit: February 23, 2008, 01:16:19 am by Caarrie »

Vornne

  • Testers
  • Hydlaa Resident
  • *
  • Posts: 189
    • View Profile
Re: Completely Getting Rid of Labels
« Reply #4 on: February 23, 2008, 09:56:20 am »
This is totally unofficial... but I merged the new label code from trunk to stable a while back for someone else:

You will need to download planeshift from svn, use the guide. Before compiling planeshift save this to a file in the planeshift source directory called labels.patch, and on linux or mac use 'patch -p0 < labels.patch' from the console in the ps directory to automatically apply it - for windows I have no idea, ask someone else. Hopefully you won't get any failed patches, but if you do you can fix it manually or try get hold of me. Then compile it all, and download character_set_myriad.dds from planeshift svn art, and put it in /art/effects/, then run it and enjoy :)

Note this is not the absolute latest from trunk, but it has the same performance. It gives speed ups only when loading areas where there are a lot of objects, or when objects arrive. I found it very good for myself, but if you are already slowed down a lot by the maps because you don't have a fast graphics card, you may not notice much difference, as some of the other testers experienced.

I also made simpler patches that just enabled the old labels to be turned completely off, but I figure if you are going to compile from source you may as well have the good stuff.

For those that are interested I recorded the load time from clicking "Join" until all labels had loaded, in hydlaa_plaza beside 150 npcs, labels always on. With two runs each, the total time for the old system was about 1:45, the new system about 1:00, and labels turned off about 0:50. So it speeds things up in certain circumstances. Bear in mind some of the lag is because of how the plaza map is made, some could be because the lighting system is unoptimized, sometimes because the server gets behind when the database is being accessed in certain ways, some is because of the sound system is a hog, some is because of map loading changes that make your computer more likely to use swap... there is no silver bullet. I think that the next version will at least partly fix some of those areas, but not all  ;)