Pumpkin-Docs/docs/tr_TR/config/compression.md
2026-07-24 13:05:39 +02:00

67 lines
1.3 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Sıkıştırma
Sıkıştırma, packets boyutunu azaltmak için kullanılır. Bu, sunucu tarafında bant genişliğini azaltır ve daha yavaş internet bağlantısına sahip oyunculara yardımcı olur.
## Sıkıştırmayı Yapılandırma
#### `enabled`: Boolean
packet sıkıştırmasının etkin olup olmadığını belirler.
> [!TIP]
> Sunucu bir proxy arkasındaysa sıkıştırmayı devre dışı bırakmak faydalı olabilir.
:::code-group
```toml [pumpkin.toml] {2}
[packet_compression]
enabled = true
```
:::
#### `threshold`: Integer (0-1024)
Sunucunun packet sıkıştırmayı denemeden önceki minimum packet boyutu.
> [!CAUTION]
> Bu değeri artırmak daha yavaş bağlantıya sahip oyuncuları olumsuz etkileyebilir.
:::code-group
```toml [pumpkin.toml] {2}
[packet_compression]
threshold = 256
```
:::
#### `level`: Integer (0-9)
0 ile 9 arasında bir değer: 0 sıkıştırmayı devre dışı bırakır, 1 en hızlı sıkıştırmadır (boyut pahasına), 9 ise maksimum sıkıştırmadır (hız pahasına).
:::code-group
```toml [pumpkin.toml] {2}
[packet_compression]
level = 4
```
:::
## Varsayılan yapılandırma
Varsayılan olarak sıkıştırma etkindir.
:::code-group
```toml [pumpkin.toml]
[packet_compression]
enabled = true
threshold = 256
level = 4
```
:::