Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 31 Jul 2015 06:58 PM |
| I'm using :FillBall() a lot of times is there a better method? |
|
|
| Report Abuse |
|
|
| |
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 01 Aug 2015 11:27 PM |
| that doesnt help me at all lol |
|
|
| Report Abuse |
|
|
|
| 01 Aug 2015 11:28 PM |
| Don't generate any terrain at all. |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 01 Aug 2015 11:49 PM |
| can someone actually help me |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
| |
|
Link5659
|
  |
| Joined: 04 Jun 2012 |
| Total Posts: 4525 |
|
| |
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 02 Aug 2015 12:51 AM |
omg when did the scripters forum become a bunch of non helpful scrubs... dont reply if you dont know an actual way to help me, i didnt post to be told a whole bunch of non useful replies
i have a script that generates :FillBall() terrain pieces, and it lags a lot for some reason, i know roblox's terrain generator doesnt lag, and i wish to make it like theirs but i dont know what there script is unfortunately...
please just help me |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 12:53 AM |
A code segment example would be great.
|
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 12:53 AM |
Honestly, I think the most logical way to stop it from lagging -
Don't use it at all.
There's really nothing you can do to stop it from lagging except turning your graphics down. |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 02 Aug 2015 12:53 AM |
Get a better pc
I don't need a siggy |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 02 Aug 2015 12:54 AM |
local terrain = game:GetService("Workspace").Terrain
local lastPause, catchUp = tick(), 0 function pause(shore) catchUp = catchUp+1 if tick()-lastPause > 1/6 then wait() lastPause = tick() end if catchUp >= 250 and (not shore) then wait(20) catchUp = 0 end end
local Grass = Enum.Material.Grass local Mud = Enum.Material.Mud local Rock = Enum.Material.Rock
function AddNoise(height, topRad, BallSize) for a=-topRad, topRad do pause() for b=-topRad, topRad do for u = 0, 2*math.pi, 0.1 do local x = (topRad-(topRad+a))*math.cos(u) local y = (topRad-(topRad+a))*math.sin(u) local div = math.random(80, 150) local z = height -20*math.noise(x/div, y/div) if(a < x and b < y) then terrain:FillBall(Vector3.new(x, 100-z, y) ,BallSize, Grass) end end end end end
function generateBase(r, height) local Count = 0 local spread = 0 spread = r*0.20 local BallSize = 0 BallSize = height*.1--0.375 for u=0, 2*math.pi, 0.01 do pause(true) for v=height/2, height do Count = Count + 1 local x, y, z = r*math.cos(u)*v/spread, r*math.sin(u)*v/spread, v terrain:FillBall(Vector3.new(x,100-z,y) ,BallSize, Grass) if (Count==1) then AddNoise(v, r*v/spread, BallSize) end end end end
local players = game:GetService("Players") function playerAdded(player) wait(10) generateBase(1000, 200) end players.PlayerAdded:connect(playerAdded)
-- with the pause() function i tried to eliminate all lag. |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 02 Aug 2015 12:55 AM |
| atm it doesnt lag but if you make it bigger and look smoother it does lag and sometimes crash |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 02 Aug 2015 12:56 AM |
also it isnt my pc, the only relevant thing is the code itself so stop bringing up other stuff e.e
it would crash/lag anyones computer |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 12:58 AM |
I find it funny you try to stop the lag by adding complex scripts that will cause more lag
Less lag = less terrain
More terrain = more lag
Elementary, my dear Watson
The only way to stop lag is to take away terrain, no matter what scripts you pull out of your rear, unless it takes away terrain (which I don't think you can acess) it won't change a DANG thing) |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 12:59 AM |
"Elementary, my dear Watson"
Never directly quoted, for your information. Source: Big Sherlock Holmes fan [the original, not your mainstream 'Sherlock'] |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 02 Aug 2015 01:00 AM |
listen you idiot its not that its that im creating too much terrain too fast
so screw off unless you have advice or actually know what you're talking about
i plan on making this terrain infinite. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 01:01 AM |
Lol
Like you know better
Don't use smooth terrain anyways, unless you're a pro (which I doubt) it always ends up looking dull and boring
Do I have to directly quote it? Do I really? Do people even care? |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 02 Aug 2015 01:01 AM |
You obviously know nothing about lag
I don't need a siggy |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 01:02 AM |
"Do I have to directly quote it? Do I really? Do people even care?"
By that I meant that your stated quote was never said in the original Sherlock Holmes books nor original tv series. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 01:02 AM |
Oh
You're make infinite terrain
Welp
Go use JavaScript or something other than Lua and ROBLOX games 'cause this crap ain't gonna handle it |
|
|
| Report Abuse |
|
|
iiEssence
|
  |
| Joined: 18 Jun 2014 |
| Total Posts: 3467 |
|
|
| 02 Aug 2015 01:02 AM |
No one cares, out
I don't need a siggy |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 02 Aug 2015 01:04 AM |
Essence screw off you dont even understand the problem. And don't reply unless you know better, jake. that goes for everyone else |
|
|
| Report Abuse |
|
|
Climox
|
  |
| Joined: 22 Jun 2012 |
| Total Posts: 716 |
|
|
| 02 Aug 2015 01:05 AM |
jake im trying to make it on roblox... maybe not infinite but i want it to be huge and i want to make a game out of it, a really realistic survival game. |
|
|
| Report Abuse |
|
|
|
| 02 Aug 2015 01:05 AM |
I heard it on an Epic Rap Battles of History
I don't own any of the Sherlock Holmes books, but they sound like a good read.
Anyways, staying on topic, I understand enough about lag, it's kind of like that beans song Bart Simpson sang one episode of the Simpsons
"ROBLOX, ROBLOX, the magical site, the more you add into your games, the more it will lag because it has to load and render all of that and run scripts all at the same time which will take long since the internet is good but not that good and what you're asking is practically impossible"
-lol staying on topic |
|
|
| Report Abuse |
|
|