summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/camera.rs2
-rw-r--r--client/src/download.rs6
2 files changed, 6 insertions, 2 deletions
diff --git a/client/src/camera.rs b/client/src/camera.rs
index 4006c74..d2d4bda 100644
--- a/client/src/camera.rs
+++ b/client/src/camera.rs
@@ -47,7 +47,7 @@ impl Camera {
Mat3::from_euler(EulerRot::YXZ, self.rot.x, self.rot.y, self.rot.z)
}
pub fn to_matrix(&self) -> Mat4 {
- Mat4::perspective_rh(self.fov, self.aspect, 0.1, 100.)
+ Mat4::perspective_rh(self.fov, self.aspect, 0.1, 300.)
* Mat4::from_mat3(self.rotation_mat().inverse())
* Mat4::from_translation(-self.pos)
}
diff --git a/client/src/download.rs b/client/src/download.rs
index 85cce32..2d61a53 100644
--- a/client/src/download.rs
+++ b/client/src/download.rs
@@ -84,7 +84,11 @@ impl Downloader {
pub fn update(&self, network: &Network) -> Result<()> {
let mut state = self.inner.write().unwrap();
let mut new_pending = Vec::new();
- for n in state.need.difference(&state.pending) {
+ for n in state
+ .need
+ .difference(&state.pending)
+ .take(32 - state.pending.len())
+ {
network
.packet_send
.send(Packet::RequestResource(*n))