Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Multiple OpenGL device contexts  (Read 3297 times)
0 Members and 1 Guest are viewing this topic.
Offline theagentd

« JGO Bitwise Duke »


Medals: 365
Projects: 2
Exp: 8 years



« Posted 2012-01-23 09:48:15 »

A purely hypothetical question: If I have two GPUs in my computer can I create an OpenGL context for each of them and render with both of them?

Myomyomyo.
Offline Spasi
« Reply #1 - Posted 2012-01-23 10:31:17 »

In theory, yes. But it cannot be done without vendor-specific extensions: NV, AMD. LWJGL supports neither of the two at the moment, but they're both in the TODO list for the 3.0 API redesign.
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #2 - Posted 2012-01-23 10:43:37 »

LWJGL 3.0 is gonna have an API redesign? How major will this be? Could you provide more info about this please? Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Spasi
« Reply #3 - Posted 2012-01-23 11:12:41 »

The static nature of the AL/GL/CL APIs will not change, so the bulk of your code will work without changes. But we'll have to do some incompatible changes to the window and context management APIs. It's necessary in order to satisfy certain needs that have arisen recently. Some examples:

- Better integration with 3rd party contexts (e.g. sharing contexts with SWT GLCanvas contexts)
- Support for multiple windows/Displays.
- Support for multi-GPU solutions.
- Display-mode switching without window destruction.

It's also hard to support additional window features with the current code. A refactoring will make our work less painful and allow for better integration with 3rd party windowing systems (e.g. Prism when it hopefully becomes open-source).
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #4 - Posted 2012-01-23 22:19:52 »

Wow, I love all the hard work you guys put into this. Good luck! Smiley

Offline theagentd

« JGO Bitwise Duke »


Medals: 365
Projects: 2
Exp: 8 years



« Reply #5 - Posted 2012-01-24 02:18:38 »

The static nature of the AL/GL/CL APIs will not change, so the bulk of your code will work without changes. But we'll have to do some incompatible changes to the window and context management APIs. It's necessary in order to satisfy certain needs that have arisen recently. Some examples:

- Better integration with 3rd party contexts (e.g. sharing contexts with SWT GLCanvas contexts)
- Support for multiple windows/Displays.
- Support for multi-GPU solutions.
- Display-mode switching without window destruction.

It's also hard to support additional window features with the current code. A refactoring will make our work less painful and allow for better integration with 3rd party windowing systems (e.g. Prism when it hopefully becomes open-source).
HOLY MOTHER OF GOD HAVE MY BABIES

Myomyomyo.
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #6 - Posted 2012-01-24 02:27:11 »

Errrrr.......

Offline lhkbob

JGO Knight


Medals: 32



« Reply #7 - Posted 2012-01-24 05:45:27 »

You will understand when you're older

Offline theagentd

« JGO Bitwise Duke »


Medals: 365
Projects: 2
Exp: 8 years



« Reply #8 - Posted 2012-01-24 10:09:35 »

I think I've returned to my senses again...

 - WHEEEEEEEN?!?!?! (Okay, I haven't.)
 - What do you mean by "support for multi-GPU solutions"? The ability to tell the driver to use AFR or SFR (unlikely) or the ability to specify which GPU to use for which contexts (what I asked for in the opening post)?
 - WHEEEEEEEEEEEN?!?!?!?!
 - Random question: Is a 750W Corsair power supply enough to drive a GTX 295 plus a new Kepler card?
 - WHEEEEEEEEEEEEEEEEEN?!?!?!?!?!?!??!
 - Random question 2: Is it possible to connect two different NVidia cards with an SLI-bridge and utilize it for data transfer between the cards?
 - WHEEEEEE-- Oh, wait, I think you get it by now...

Myomyomyo.
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #9 - Posted 2012-01-24 14:46:51 »

I have a Cosair 750W for my GTX 580 and i7 2600k so I do believe you're very fine Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline theagentd

« JGO Bitwise Duke »


Medals: 365
Projects: 2
Exp: 8 years



« Reply #10 - Posted 2012-01-24 14:53:51 »

I have a Cosair 750W for my GTX 580 and i7 2600k so I do believe you're very fine Smiley
I meant having both a GTX 7xx card AND a GTX 295 plugged into the same computer at the same time...

Myomyomyo.
Offline ra4king

JGO Kernel


Medals: 356
Projects: 3
Exp: 5 years


I'm the King!


« Reply #11 - Posted 2012-01-24 15:17:36 »

I have no idea how much power a GTX 295 draws but it's a dual GPU card....I would get a bit more than a 750W...

The best place for hardware questions is the #hardware channel on Freenode. Those guys are awesome Smiley

Offline lhkbob

JGO Knight


Medals: 32



« Reply #12 - Posted 2012-01-24 17:13:48 »

I believe SLI works only when it's the same type of card.  I know that's the case with my 2 560's.

Offline sproingie

JGO Kernel


Medals: 202



« Reply #13 - Posted 2012-01-24 17:32:21 »

Some cards do support "mixed SLI", but only for minor revisions within the same family.  The 570 and 580 could probably do SLI together for example.  But a 780 and 295, forget it.

Plus, you could probably keep a hot air balloon aloft with what you'll have blowing out the back of a machine with both of those cards running full blast.
Offline Danny02
« Reply #14 - Posted 2012-01-24 17:34:49 »

when you want 1 render context you need 2 exactly equal GPUs
,but if u want to use 2 render contexts or want to render on one card and do calculations on the other you can have any 2 GPUs you want(and they needn't be connected by a SLI bridge).

I think you can't share or exchange data on both cards if they aren't connected with SLI or Crossfire.


For example you need two GPUs for debugging CUDA(or a notebook with a Nvidia Optimus card, which all recent are), but no SLI. You can even debugg over LAN if both PC have a CUDA capable GPU.
Offline theagentd

« JGO Bitwise Duke »


Medals: 365
Projects: 2
Exp: 8 years



« Reply #15 - Posted 2012-01-25 03:43:40 »

I believe SLI works only when it's the same type of card.  I know that's the case with my 2 560's.
Some cards do support "mixed SLI", but only for minor revisions within the same family.  The 570 and 580 could probably do SLI together for example.  But a 780 and 295, forget it.

Plus, you could probably keep a hot air balloon aloft with what you'll have blowing out the back of a machine with both of those cards running full blast.
I know.

when you want 1 render context you need 2 exactly equal GPUs
,but if u want to use 2 render contexts or want to render on one card and do calculations on the other you can have any 2 GPUs you want(and they needn't be connected by a SLI bridge).

I think you can't share or exchange data on both cards if they aren't connected with SLI or Crossfire.
This is why I asked about multiple contexts in the first place. I know the GPUs are different, I just wonder if I can render with them all in parallel by manually dividing the workload between them, and send the data over an SLI-bridge to avoid a PCI/CPU bottleneck.

Myomyomyo.
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (30 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (50 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (57 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!