Posts: 4
Threads: 2
Joined: Oct 2020
Reputation:
0
So how would tilengine be setup to render into a native win32 application?
I'm familiar with how to setup a win32 program and make a window/process messages.
Posts: 673
Threads: 33
Joined: Jan 1970
Reputation:
13
Hi,
I don't quite understand what you mean with a "native win32 application". When you compile a program that uses Tilengine with Visual Studio or mingw32, the resulting executable is a native win32 application, you cannot run in under linux or in a raspberry. The generated window is a native win32 window too.
Posts: 187
Threads: 22
Joined: Dec 2020
Reputation:
1
12-11-2020, 12:49 PM
(This post was last modified: 12-11-2020, 12:51 PM by System64.)
It uses SDL2 to display graphics.
not sure if it uses hardware acceleration to display them, but it may use Open GL since it's open source and cross-platform, but again, not sure at all.
Update : It uses OpenGL
Posts: 187
Threads: 22
Joined: Dec 2020
Reputation:
1
Does the base Tilengine use hardware acceleration?
Posts: 673
Threads: 33
Joined: Jan 1970
Reputation:
13
No, the base Tilengine doesn't use hardware acceleration at all, it's entirely software based on CPU alone. SDL2 library that underpins the built-in window does use hardware acceleration.
Posts: 187
Threads: 22
Joined: Dec 2020
Reputation:
1
Ah I understand why it takes half of my GPU now. How can I enable it?
Posts: 673
Threads: 33
Joined: Jan 1970
Reputation:
13
Sorry I don't understand the question. Enable what?
If GPU usage is high, you may have a low-end system. Disable CRT effect (enabled by default) by pressing "backspace" key once
Posts: 187
Threads: 22
Joined: Dec 2020
Reputation:
1
Sorry if my question wasn't clear, I meant, how can I enable hardware acceleration support?