[C# Unity] Class (or function) of multithread and async to save Texture2D as jpg(or png) img each frame without affecting to the main loop (frame rate) of the game

Tamamlanmış İlan edilme: 2 yıl önce Teslim sırasında ödenir
Tamamlanmış Teslim sırasında ödenir

Hi, I need the functionality of multithread and async to save Texture2D as jpg(or png) img each frame without affecting to the main loop (frame rate) of the at Unity, C# environment.

I do not want re-invent the wheel, so, someone have already done the same/ similar tasks are welcomed.

[Current code]

//////// the process of every frame in Unity

[login to view URL](savePath + "/[login to view URL]", [login to view URL](100));

or

[login to view URL](savePath + "/[login to view URL]", [login to view URL]());

[Requirements]

Unity 2019.4.7f1 (limited concretely)

--- I know some improvement about treating Texture2D later version of the Unity though,

they are not the target of this project.

Main game loop fps should not be affected.

Some delay to save img are allowed but too long is not allowed.

It's not restrict requirement (probably trade off with memory and CPU usage).

So please tell me your estimation (Cpu/Memory usage and delay) before hand.

Some Memory usage is allowed but 1GB - 2GB or such.

Tmp variable, object, byte[] texture2D etc. or thread/sub-process should be disposed property to avoid memory leak.

The Class(or function ) should receive save target pass(string) and texture2D as arguments.

No need to return value.

One images save sequence may endure 30fps of main frame and 600sec(5 min)

Image(and Texture) size is 4096x4096px (would be lager in the near future)

[FYI]

Current version of sync logic at my hard ware soft ware environment,

without saving(and EncodeToJPG,orEncodeToPng), fps is 20-30.

(CPU usage is 30% or such)

With [login to view URL](100)), it slow down to 6fps or such.

With [login to view URL](100)), it slow down to 3fps or such.

EncodeToJPG() or EncodeToPng() is the bottle neck.

Thanks in advance.

Unity 3D C# Programlama Oyun Geliştirme

Proje NO: #30980109

Proje hakkında

7 teklif Uzak proje Aktif 2 yıl önce

Seçilen:

Nazardev

********* Hello Tsutomu ************ As I am a Unity3D developer, I have done many projects using Unity3D. I've made many games in Unity, and I even made and published one on Steam. If you'd like to check it out, here Daha Fazla

%selectedBids___i_period_sub_7% gün içinde 252%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(0 Değerlendirme)
0.0

Bu iş için 7 freelancer ortalamada $206 teklif veriyor

gamedev2492

Hello, Nice to meet you! I am Dan, having expertise in full-stack game development, and has five years of quality experience. I have previously done similar optimizations. Please review my portfolio and contact me if Daha Fazla

$100 USD in 7 gün içinde
(4 Değerlendirme)
3.7
tiamaevdmitrii

Hi, I am a good Unity and c# .net expert. I can help you to implement multi thread save logic. Hope to disucss more details. Regards.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(3 Değerlendirme)
3.5
shafinislam802

Hi, I have read your requirements and I think I am the best person for it. I can write code in DOTS witch is a must for multithreaded functions. Inbox me for other chat.

$200 USD in 3 gün içinde
(1 Yorum)
1.5