Remove logs and moar audio send

main
Cameron Murphy Reikes 2 years ago
parent e972537e89
commit 46eb3456ba

2
.gitignore vendored

@ -1,4 +1,4 @@
enc_temp_folder/ # visual studio enc_temp_folder/
*.spall # profiling *.spall # profiling
*.bin # world files *.bin # world files
debug_world.bin debug_world.bin

@ -1283,10 +1283,6 @@ static void frame(void)
// "commit" the input. each input must be on a successive tick. // "commit" the input. each input must be on a successive tick.
if (tick(&gs) > last_input_committed_tick) if (tick(&gs) > last_input_committed_tick)
{ {
if (cur_input_frame.take_over_squad != -1)
{
Log("Sending take over squad at tick %zu\n", tick(&gs));
}
cur_input_frame.tick = tick(&gs); cur_input_frame.tick = tick(&gs);
last_input_committed_tick = tick(&gs); last_input_committed_tick = tick(&gs);

@ -423,7 +423,7 @@ void server(void *info_raw)
last_sent_audio_time = stm_now(); last_sent_audio_time = stm_now();
int num_audio_packets = (int)floor(1.0f / (VOIP_TIME_PER_PACKET / audio_time_to_send)); int num_audio_packets = (int)floor(1.0f / (VOIP_TIME_PER_PACKET / audio_time_to_send));
#define MAX_AUDIO_PACKETS_TO_SEND 6 #define MAX_AUDIO_PACKETS_TO_SEND 12
if (num_audio_packets > MAX_AUDIO_PACKETS_TO_SEND) if (num_audio_packets > MAX_AUDIO_PACKETS_TO_SEND)
{ {
Log("Wants %d, this is too many packets. Greater than the maximum %d\n", num_audio_packets, MAX_AUDIO_PACKETS_TO_SEND); Log("Wants %d, this is too many packets. Greater than the maximum %d\n", num_audio_packets, MAX_AUDIO_PACKETS_TO_SEND);

Loading…
Cancel
Save