Hello, I’m trying to make a custom replication system without using any instances on the server to save on bandwidth. I placed an example code of what I want to achieve. Is it okay to continously use Player:RequestStreamAroundAsync? I plan on using an interval to not spam it every frame, but I fear that even then it will still be highly inperformant.
I wish not to use replication focus, because that will undermind the entire point and add additional bandwidth.
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local UpdatePlayerPositionUtils =
ReplicatedStorage.Shared.Modules.Remotes.UpdatePlayerPosition.UpdatePlayerPositionUtils
local Module = {}
local Characters = {}
Module.Event = function(Player: Player, Arguments)
--print(Player, Arguments)
local CFrame = Arguments[1] :: CFrame
Player:RequestStreamAroundAsync(CFrame.Position)
-- Replicate to other players using remote event
end
Module.Link = require(UpdatePlayerPositionUtils)
return Module