J
JDBar
Guest
I'm posting this in case I'm doing something wrong, but I believe there may be a memory leak associated with network_send_udp.
I've made an empty project, and added the following:
obj_test Create Event
obj_test Step Event
I set the room speed to about 500, and this is the result in debug mode:
Should I be sending data differently? Is there a way to avoid this?
I've made an empty project, and added the following:
obj_test Create Event
Code:
/// Create Server and Write to Buffer
server = network_create_server(network_socket_udp, 58008, 32);
buffer = buffer_create(1, buffer_grow, 1);
buffer_seek(buffer, buffer_seek_start, 0);
buffer_write(buffer, buffer_bool, true);
Code:
/// Send buffer every step.
network_send_udp(server, "127.0.0.1", 58008, buffer, 1);
Should I be sending data differently? Is there a way to avoid this?