Jump to content

Recommended Posts

Posted

Is there some kind of FPS lock or some code somewhere in the dafault scripts that is locking FPS. My game runs at 24 FPS on a 2gb card and exactly the same fps on a 4gb card. I need to find a way to unlock this framerate and let the gpu take over.

Posted

Using context:Sync(false) causes crazy screen flashing because it affects all of the printed to screen commands in the post render (context) function and it messes with the menu.

I just put the line of code in the world update function. Because when actually playing I want fps to unlock.

When checked against task manager my game uses hardly any cpu and ram. And when I play it from steam. The more complex tasks that are memory dependant run super quick. Its purely FPS and GPU I am having issues with.

Posted

I can't diagnose a verbal description of a game I have never seen :D

But I am happy to try the game out if you give me access to it.

My job is to make tools you love, with the features you want, and performance you can't live without.

Posted

I have been doing some testing my end. It seems to be some kind of scene overload. Non scripted entities I can have as much as I want with very little impact. But prefabs of the same entites with scripts attached slow everything down significantly.

I can load 100 or 200 prefabs not a problem and still get around 40fps. But when I try to generate the 1000 or 2000 I am aiming for this halves. 

I think I need to come up with a way to make the computer ignore entities until they are in range.

I am thinking some kind of distance check to show and hide them. I'm just not sure on the best way to do it. Because a world loop in the UpdateWorld function would also slow the fps significantly.

Posted

Instancing

An instance of an entity will use the same geometry data within the GPU.   You load one main mesh, then instance it to create hundreds more, rather than copying each objects data.  The GPU still has to render each object, but its data is gathered from one place rather than several.  The terrain vegetation system uses instancing as to not use huge amounts of memory.

Posted

I was under the impression that instancing is the default.  Meaning, if you load goblin.mdl to model1 and then the same to model2, model2 will automatically be an instance.  And you need to use the copy function to force separate copies.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...