Av3boy / Av3boy/SharpEngine

SPIKE: Multiple renderers vs one renderer and a Renderable class

Đang mở
#55 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
spike
Ngôn ngữ chính
C#
Star
6
Fork
0
Merge trung bình
1 giờ 1 phút
Pull request đã merge (30 ngày)
2

Mô tả

Investigate what should be the best approach in terms of performance, maintanability and use of use for developers.

If all objects can just inherit the Renderable class and tell how a single renderer should manage them that's fine.
We can also create multiple renderes and objects of different type just tell that specific renderer how they are supposed to be rendered.

How do UI elements and "traditional" game objects differ from each other? The shader tells the gpu where and how it should be rendered and the class itself passes the data to the shaders and the gpu.

# No difference how the renderer renders the object

If we are using just a single `Render` function then a single renderer would make sense. However, iterating through all types of objects and calling `Render` on them may not the be the most performant solution with a single renderer.

Maybe we could create a `Renderer` class that handles rendering of objects of different types.

# Differences in the way objects need to be rendered
TBD: This is the part we need to investigate right now. If there are non, investigate the above and see what is the best / most performant / maintainable solution.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Không có tệp hoặc bài kiểm thử nào được nêu tên. Hãy bắt đầu bằng cách xác định renderer hiện có, các phương thức Render, các kiểu liên quan đến Renderable và các đường dẫn shader, sau đó so sánh một renderer với các renderer dành riêng cho từng kiểu cho UI và các đối tượng game truyền thống. Được xem là hoàn tất khi một kiến trúc đã được quyết định dựa trên hiệu năng, khả năng bảo trì và tính dễ sử dụng đối với nhà phát triển được ghi lại.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
csharp
Lĩnh vực
computer-graphics, game-dev
Loại issue
Tái cấu trúc
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.