Skip to content

Commit

Permalink
[6906] Revert "Reduced number of cells (doubled max visibility distan…
Browse files Browse the repository at this point in the history
…ce)."

This reverts a part of commit eb60f74 that caused some performance issues.
  • Loading branch information
Wyk3d authored and Wyk3d committed Dec 13, 2008
1 parent 94348b4 commit 38703ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/game/GridDefines.h
Expand Up @@ -41,10 +41,10 @@ class Player;
#define MIN_GRID_DELAY MINUTE*1000
#define MIN_MAP_UPDATE_DELAY 50

#define MAX_NUMBER_OF_CELLS 4
#define MAX_NUMBER_OF_CELLS 8
#define SIZE_OF_GRID_CELL (SIZE_OF_GRIDS/MAX_NUMBER_OF_CELLS)

#define CENTER_GRID_CELL_ID 128
#define CENTER_GRID_CELL_ID 256
#define CENTER_GRID_CELL_OFFSET (SIZE_OF_GRID_CELL/2)

#define TOTAL_NUMBER_OF_CELLS_PER_MAP (MAX_NUMBER_OF_GRIDS*MAX_NUMBER_OF_CELLS)
Expand Down
12 changes: 6 additions & 6 deletions src/mangosd/mangosd.conf.dist.in
Expand Up @@ -863,9 +863,9 @@ GM.StartLevel = 1
# Visibility.Distance.Creature
# Visibility.Distance.Player
# Visibility distance for different in game object
# Max limited by active player zone: ~ 333
# Max limited by active player zone: ~ 166
# Min limit dependent from objects
# Default: 132 (cell size)
# Default: 66 (cell size)
# Min limit is max aggro radius (45) * Rate.Creature.Aggro
#
# Visibility.Distance.Object
Expand All @@ -891,10 +891,10 @@ GM.StartLevel = 1
###################################################################################################################

Visibility.GroupMode = 0
Visibility.Distance.Creature = 132
Visibility.Distance.Player = 132
Visibility.Distance.Object = 132
Visibility.Distance.InFlight = 132
Visibility.Distance.Creature = 66
Visibility.Distance.Player = 66
Visibility.Distance.Object = 66
Visibility.Distance.InFlight = 66
Visibility.Distance.Grey.Unit = 1
Visibility.Distance.Grey.Object = 10

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6905"
#define REVISION_NR "6906"
#endif // __REVISION_NR_H__

2 comments on commit 38703ab

@theromi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

@Wyk3d
Copy link

@Wyk3d Wyk3d commented on 38703ab Dec 14, 2008

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It’s a big performance drain under mmorpg sized loads. If you want the feature and you don’t mind the overhead, just go ahead and revert this commit for yourself.

Please sign in to comment.