'Unity'에 해당되는 글 185건
- 2024.04.16 유니티 Assembly Definition Asset
- 2024.03.19 c# Dictionary(딕셔너리) 관련
- 2024.02.27 게임개발용 부하테스트 2024
- 2024.02.24 유니티 모델 임포트 에러
- 2024.01.18 매트캡 생성하기
- 2023.12.19 자주 쓰는 DateTime 코드 모음
- 2023.12.18 유니티 쉐이더 오류 모음
- 2023.11.27 에셋스토어 업로드 거부사례 모음
-테스트 환경-
CPU : 라이젠 5 1600
메모리 : 32GB 1333Mhz
GPU : RTX 3050 8GB
-사용 코드-
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DrawCallTest : MonoBehaviour
{
int stopCount = 100;
public int wantFPS = 60;
List<GameObject> gameObjects = new List<GameObject>();
public Renderer renderTarget;
// Start is called before the first frame update
void Start()
{
renderTarget.gameObject.SetActive(false);
}
float preTime = 0;
// Update is called once per frame
void Update()
{
if (Time.time>3)
{
if (stopCount<=0)
{
return;
}
if (Time.deltaTime > 1f / wantFPS)
{
stopCount--;
}
else
{
}
stopCount=Mathf.Clamp(stopCount, 0, 10);
var wid = (int)Mathf.Sqrt(gameObjects.Count+1);
for (int i = 0; i < 10; i++)
{
var instance = Instantiate(renderTarget.gameObject);
instance.SetActive(true);
gameObjects.Add(instance);
}
}
}
}
-사용된 fbx 파일 -
언릿쉐이더로 진행
드로우콜 테스트
목표치 60fps일경우 6152
목표치 144fps일경우 1112
목표치 60fps일경우 38.3M Tris
목표치 144fps일경우 12.3M Tris
2020에 970으로 쟀을때보다 성능이 많이 좋아졌다
그리고 3050은 최약체라서 목표치를 60으로 잡으면 충분할것 같다
주의점은 위에서 테스트된건 스킨드메쉬가 아니라 메쉬렌더러라서 버텍스 영향을 좀 덜 받으니
버텍스같은 경우에는 5M 초과하지 않도록 여유분을 주자
드로우 콜의 경우에는 내부 CPU 로직이 많으면 떨어지는 경향이 있으니
로직이 복잡한 게임이라면 여유분을 더 크게주고, 결국 어떤 게임을 만드느냐에 따라서도 영향이 있으니까 알아서 판단
끝
-그외
텍스처 메모리와 성능과의 연관성
텍스처 메모리와 성능과의 연관성
사용된 코드 using System.Collections; using System.Collections.Generic; using UnityEngine; public class TextureMemoryTest : MonoBehaviour { public Renderer renderTarget; public Texture[] textures; public int max = 800; public bool useTexture = false;
wmmu.tistory.com
'Unity' 카테고리의 다른 글
유니티 Assembly Definition Asset (0) | 2024.04.16 |
---|---|
유니티 모델 임포트 에러 (0) | 2024.02.24 |
매트캡 생성하기 (0) | 2024.01.18 |
ImportFBX Warnings:
Can't generate normals for blendshape 'BreastsSmall' on mesh 'Shirt', mesh has no smoothing groups.Can't generate normals for blendshape 'Breasts_big' on mesh 'Shirt', mesh has no smoothing groups.Can't generate normals for blendshape 'Breasts_normal' on mesh 'Shirt', mesh has no smoothing groups.Can't generate normals for blendshape 'Chira' on mesh 'Shirt', mesh has no smoothing groups.Can't generate normals for blendshape 'Hutomomo' on mesh 'Shorts', mesh has no smoothing groups.Can't generate normals for blendshape 'Length' on mesh 'Shorts', mesh has no smoothing groups.Can't generate normals for blendshape 'MoveY' on mesh 'Hairpin', mesh has no smoothing groups.Can't generate normals for blendshape 'MoveYm' on mesh 'Hairpin', mesh has no smoothing groups.Can't generate normals for blendshape 'MoveZ' on mesh 'Hairpin', mesh has no smoothing groups.Can't generate normals for blendshape 'MoveZm' on mesh 'Hairpin', mesh has no smoothing groups.Can't generate normals for blendshape 'SleeveLeft' on mesh 'Shirt', mesh has no smoothing groups.Can't generate normals for blendshape 'SleeveRight' on mesh 'Shirt', mesh has no smoothing groups.Can't generate normals for blendshape 'UseBra' on mesh 'Shirt', mesh has no smoothing groups.
(Filename: C:\build\output\unity\unity\Modules\AssetPipelineEditor\Public\ModelImporting\FBXImporter.cpp Line: 383)
작동엔 이상없으니 스킵했다
보다시피 Shirt 오류인데
당연히 블렌더상에서는 전혀 이상없다
먼저 쉐이프키를 다 지우니까 안 뜬다
즉 쉐이프키 오류다
이거말고는 알아낸게 없어서 일단 보류
나중에 테스트 해봐야지
'Unity' 카테고리의 다른 글
게임개발용 부하테스트 2024 (0) | 2024.02.27 |
---|---|
매트캡 생성하기 (0) | 2024.01.18 |
에셋스토어 업로드 거부사례 모음 (0) | 2023.11.27 |
https://assetstore.unity.com/publishing/submission-guidelines
Unity Asset Store Submission Guidelines - Asset Store
Submission Guidelines give new and existing publishers a comprehensive understanding of what is expected of products submitted to the Unity Asset Store.
assetstore.unity.com
'Unity' 카테고리의 다른 글
매트캡 생성하기 (0) | 2024.01.18 |
---|---|
에셋스토어 업로드 2023 (0) | 2023.11.21 |
메쉬베이커 사용법 (0) | 2023.11.15 |