Get it on Google Play


Wm뮤 :: 'Unity' 카테고리의 글 목록 (2 Page)

블로그 이미지
불펌때문에 드래그 방지 건것가지고
99% 다 공유되는 지식 가져와서 쓰는 글 아니냐 누가 보면 자기 지식 훔쳐가는줄 자기도 다 베껴온거일텐데
같은 소리 할거면 꾸역꾸역 블로그 찾아오지 말고 AI나 쓰쇼.
세상에 없는게 많아서 제로베이스에서 손수 연구하고 만들어서 정리해줬더니 이런 소리나 들어야 합니까?
모카쨩
@ahzkwid

Recent Comment

Archive


2024. 4. 16. 23:27

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

2024. 3. 19. 01:48

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

2024. 2. 27. 10:06 Unity

 

 

 

 

-테스트 환경-

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 파일 -

98306.fbx
0.02MB
393218.fbx
0.04MB
1572866.fbx
0.10MB
6291458.fbx
0.35MB

 

언릿쉐이더로 진행

 

 

 

드로우콜 테스트

목표치 60fps일경우 6152

 

 

 

 

목표치 144fps일경우 1112

 

 

 

 

 

 

 

 

 

 

 

 

목표치 60fps일경우 38.3M Tris

 

 

 

 

목표치 144fps일경우 12.3M Tris

 

 

 

2020에 970으로 쟀을때보다 성능이 많이 좋아졌다

 

그리고 3050은 최약체라서 목표치를 60으로 잡으면 충분할것 같다

 

주의점은 위에서 테스트된건 스킨드메쉬가 아니라 메쉬렌더러라서 버텍스 영향을 좀 덜 받으니

버텍스같은 경우에는 5M 초과하지 않도록 여유분을 주자

드로우 콜의 경우에는 내부 CPU 로직이 많으면 떨어지는 경향이 있으니

로직이 복잡한 게임이라면 여유분을 더 크게주고, 결국 어떤 게임을 만드느냐에 따라서도 영향이 있으니까 알아서 판단

 

 

 

 

-그외

텍스처 메모리와 성능과의 연관성

https://wmmu.tistory.com/entry/%ED%85%8D%EC%8A%A4%EC%B2%98-%EB%A9%94%EB%AA%A8%EB%A6%AC%EC%99%80-%EC%84%B1%EB%8A%A5%EA%B3%BC%EC%9D%98-%EC%97%B0%EA%B4%80%EC%84%B1

 

텍스처 메모리와 성능과의 연관성

사용된 코드 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
posted by 모카쨩
2024. 2. 24. 07:07 Unity

 

 


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
posted by 모카쨩
2024. 1. 18. 13:59

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

2023. 12. 19. 14:19

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

2023. 12. 18. 13:42

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

2023. 11. 27. 21:10 Unity

 

 

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
posted by 모카쨩