Author Topic: My idea to stop lag... and it works  (Read 800 times)

DannMann99

  • Traveller
  • *
  • Posts: 47
    • View Profile
My idea to stop lag... and it works
« on: August 11, 2003, 11:49:09 am »
Add in adjustable plane clipping. I was toying around with the game and i couldn\'t figure out where my lag was coming from. It just hit me though, that when i am in that town i am able to see everything in the town from certain points. If you add in adjustable plane clipping, the user will be able to set a point to where their vision is cut off, and the background is set to sky color or black. This way your unfortunate users with real slow computers can make the plane clipping to 0 and they wont be able to see far, but they will get alot less lag. Make it scallable from 0 to 100, 0 is only so far, and 100 is the entire zone.  I Dont know if you were working or thinking of this, but i will try to find an example of code that you could use.

~Dan
Member of the Arcane Order

CadRipper

  • Hydlaa Citizen
  • *
  • Posts: 486
  • merry troublemaker
    • View Profile
(No subject)
« Reply #1 on: August 11, 2003, 01:57:16 pm »
The \"lag\" is not due to your graphics card. You may experience a slowdown because of the graphics but this has nothing to do with the \"choppiness\" that happens when objects get in your proximity, or when suddenly everything freezes.

Those are coming from a nasty effect in the network code, like it was shown in a test.

I have put a switch to this part of the code and now I can escape the so-called \"lag\" whenever it becomes too dangerous  :D The side-effect is that all the players and objects in the proximity are not drawn anymore until I reach another area. Everything has a price...

DannMann99

  • Traveller
  • *
  • Posts: 47
    • View Profile
(No subject)
« Reply #2 on: August 11, 2003, 02:43:15 pm »
are you sure though, i played EQ for a long time, and i know when my connection was running bad or if i was in a high lag enviornment (like on a raid in a dungeon) then i would turn down the clip plane to real low, and its a noticable difference between lag. Now i dont know if this is due to processor, vid card, ram, or isp. But i have 1ghz P3, 64mb geforce,  512mb sdram, and cable ISP. So whichever it is, clip plane used to help out with either lag of low frames per second. Its just an idea to put into your project.

~Dan
Member of the Arcane Order

Drilixer

  • Veteran
  • *
  • Posts: 1165
    • View Profile
(No subject)
« Reply #3 on: August 11, 2003, 03:30:48 pm »
I think Dann has a point - I\'ve heard people talk about this before.

Wedge

  • Hydlaa Notable
  • *
  • Posts: 619
    • View Profile
(No subject)
« Reply #4 on: August 11, 2003, 04:10:51 pm »
This is an issue that causes low framerates but not choppiness or \"lag\" like Cad said.  The render routine has just about zero optimizations right now, and there are a number of things that need work that could help the issue without directly cutting the draw distance.  It\'s not really a concern for a pre-alpha release though, I\'m sure some things will be added to fix this in CB.
Ninjas have feelings too.  Mostly they feel like dancing.



theonlyjimbob

  • Traveller
  • *
  • Posts: 29
    • View Profile
(No subject)
« Reply #5 on: August 11, 2003, 08:05:51 pm »
Lag lag lag you know what I dont think there will be anyway to get out of it. Xbox found a way, only people with a cable connection can play online.  Anyways I\'d really like to know how I can play with that clipping thing.
 I have a 56k modem, Windows 98 2nd edition, pentium III, 650 MHz, 318 RAM.
[EDIT: oh and by the way I just found this out my computer has as Intel(R) 810e Chipset Graphics Driver with a 3.5 Mb capacity not that I have any clue what that is.]
« Last Edit: August 11, 2003, 08:09:00 pm by theonlyjimbob »
The body is but a vessel for the soul,
A puppet which bends to the soul\'s tyranny.
And lo, the body is not eternal,
For it must feed on the flesh of others,
Lest it return to the dust whence it came.
Therefore must the soul
Decieve, despise, and murder men.
A. J. Durai

Drilixer

  • Veteran
  • *
  • Posts: 1165
    • View Profile
(No subject)
« Reply #6 on: August 11, 2003, 08:08:23 pm »
I\'m sure the devs will fix the lag once they get around to it :P there are more important things to do right now like making trees and wineglases :D

Monketh

  • Veteran
  • *
  • Posts: 1674
  • aka GovernmentAgent, CorporateAgent
    • View Profile
    • Niihama.ws
(No subject)
« Reply #7 on: August 11, 2003, 08:44:20 pm »
I\'ll toast to that! :)  But anyway this has been discussed before and it was generally agreed on that this \"fog\" idea was good.  Perhaps we\'ll se it in cb.

[Edit: I stand corrected.]
« Last Edit: August 11, 2003, 09:05:36 pm by Monketh »
The key to manipulative bargaining is to ask for something twice as big as what you want, then smile and nod when you are talked down to your original wish. You are still young, my apprentice, and have much to learn in the ways of the force. -UtM

Kiern

  • Forum Addict
  • *
  • Posts: 2680
    • View Profile
(No subject)
« Reply #8 on: August 11, 2003, 08:49:59 pm »
« Last Edit: August 11, 2003, 08:51:43 pm by Kiern »

Drilixer

  • Veteran
  • *
  • Posts: 1165
    • View Profile
har har har
« Reply #9 on: August 11, 2003, 09:22:00 pm »
in response to a querry for draw distance:

Quote
Originally posted by Vengeance
no.

Get a new machine.

DannMann99

  • Traveller
  • *
  • Posts: 47
    • View Profile
(No subject)
« Reply #10 on: August 12, 2003, 06:05:55 pm »
My machine runs rather smoothly actually, only a real slight lag problem that i can get over pretty quick... i was just thinking that it may inhibit other players from getting on and playing around.

~Dan
Member of the Arcane Order

zaphar

  • Hydlaa Citizen
  • *
  • Posts: 259
    • View Profile
(No subject)
« Reply #11 on: August 13, 2003, 10:13:10 am »
Clipping Planes help low end machines deal with graphic overload. They reduce Frame dropping and increase framerates.

That is completely different from lag.   Lag is caused by slow communication between the client and the server. Determining which one you are experiencing can be difficult. Its kind of early to be coming up with ideas on how to reduce it. The devs are going to be fixing all this stuff in future releases. Ideas like Clipping planes are industry standards, and the dev\'s are already aware of them.

Probably the best way to prevent framerate droppage however is simply using occlusion in the maps. PS\'s evironment will be especially suited to this technique. Occlusion is using architecture and walls to \"hide views\" of the rest of the map. Since Planeshift is primarily a cave world it should be easy to design the terrain and dungeons with occlusion built in. There will of course be areas with huge vista\'s to look at. But I think a lot of the area\'s can be surrounded by lots of occluding objects.

Just my two cents on the subject.
*Zaphar grins roguishly as he exits the post


DannMann99

  • Traveller
  • *
  • Posts: 47
    • View Profile
(No subject)
« Reply #12 on: August 13, 2003, 11:48:21 am »
Occlusion sounds good.... but my PC isnt in that bad of shape so i wouldn\'t mind being able to see most of things..
Member of the Arcane Order

Drilixer

  • Veteran
  • *
  • Posts: 1165
    • View Profile
(No subject)
« Reply #13 on: August 13, 2003, 09:41:58 pm »
yeah Vengeance said that we will probably \'occlude\' in the \'Why Abemore will think PS sucks\' thread