Ryan Corkery
Ryan Corkery

Reputation: 15

How to render on the GPU instead of CPU? -Java-

In a game I am writing in Java, I am constantly (100 times a second) calling a function called render(Graphics g)

Clearly, this takes a parameter, of Graphics g, and I was wondering how to push all rendering (the render() function) to the GPU in my system, and the updating of the game would be left to my CPU.

Is this very difficult? I would assume it could be.

Upvotes: 1

Views: 3241

Answers (1)

1ac0
1ac0

Reputation: 2939

Use existing JOCL or JCUDA libraries for this task.

Upvotes: 1

Related Questions