Jump to content

  • Log In with Google      Sign In   
  • Create Account

OpenCL and also Heterogeneous computing


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
9 replies to this topic

#1 Nawy   Members   -  Reputation: 127

Like
0Likes
Like

Posted 01 October 2013 - 12:55 AM

I use a WinAPI. Because I think that is fast GUI, such as tow a big Qt Framework is a crazy idea. And a lot of dlls files... WinAPI is not bad, but isn't crossplatform. Well, I want use a OpenCL for Heterogeneous computing.
Here is scheme:
OpenGL(As Graphics) + OpenCL(As computing) + OpenAL(As Sound) + WInAPI(As GUI and also I/O)
And What do you say? Will the scheme work quickly?
Please feel free to criticize and comment!


Sponsor:

#2 zfvesoljc   Members   -  Reputation: 443

Like
2Likes
Like

Posted 01 October 2013 - 01:18 AM

 

I use a WinAPI. Because I think that is fast GUI, such as tow a big Qt Framework is a crazy idea. And a lot of dlls files... WinAPI is not bad, but isn't crossplatform. Well, I want use a OpenCL for Heterogeneous computing.
Here is scheme:
OpenGL(As Graphics) + OpenCL(As computing) + OpenAL(As Sound) + WInAPI(As GUI and also I/O)
And What do you say? Will the scheme work quickly?
Please feel free to criticize and comment!

 

 

yes, quite quickly cool.png



#3 zfvesoljc   Members   -  Reputation: 443

Like
1Likes
Like

Posted 01 October 2013 - 01:50 AM

If you want a more concrete answer, you need to ask a more specific question. What kind of a project are you aiming at?



#4 Nawy   Members   -  Reputation: 127

Like
0Likes
Like

Posted 01 October 2013 - 02:46 AM

If you want a more concrete answer, you need to ask a more specific question. What kind of a project are you aiming at?

I want create Graphics Engine, which include physics engine and simple sound system.
Most of the attention I will concentrate to physics engine, because I have idea. This project can be use as gaming engine and for scientific purposes.


#5 Bacterius   Crossbones+   -  Reputation: 9287

Like
3Likes
Like

Posted 01 October 2013 - 07:11 AM

Well it kinds of sucks to have all those cool cross-platform Open*L frameworks and then proceed to lock yourself into Windows by using the Win32 API. Especially if you intend to use it for "scientific purposes", a lot of that happens on Unix-type operating systems that drive large hardware clusters. Why can't the graphics engine power your GUI library? If you don't want to reinvent Qt that's fine, but I doubt most games use the Win32 API beyond creating a window to draw their stuff into. Usually they have their own GUI implementation based on whatever graphics library they are using, or use an existing framework which helps them place stuff on the screen, but you certainly don't see Windows controls in games, those are meant for desktop applications.


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis


#6 Nawy   Members   -  Reputation: 127

Like
0Likes
Like

Posted 01 October 2013 - 11:12 AM

Well it kinds of sucks to have all those cool cross-platform Open*L frameworks and then proceed to lock yourself into Windows by using the Win32 API. Especially if you intend to use it for "scientific purposes", a lot of that happens on Unix-type operating systems that drive large hardware clusters. Why can't the graphics engine power your GUI library? If you don't want to reinvent Qt that's fine, but I doubt most games use the Win32 API beyond creating a window to draw their stuff into. Usually they have their own GUI implementation based on whatever graphics library they are using, or use an existing framework which helps them place stuff on the screen, but you certainly don't see Windows controls in games, those are meant for desktop applications.

I think, that WinAPI is a most fastest for WindowsOS. Earlier I wrote to programms on Qt framework. Programms needed a lot of dlls, very much. It's very bad (IMHO). And This did led to what I stopped to use the Qt. I want to use a fast GUI and I/O, but Qt is a quite slow as compared with WinAPI. What will advise?


Edited by Nawy, 01 October 2013 - 11:13 AM.


#7 ChaosEngine   Crossbones+   -  Reputation: 2499

Like
0Likes
Like

Posted 01 October 2013 - 09:47 PM


I think, that WinAPI is a most fastest for WindowsOS. Earlier I wrote to programms on Qt framework. Programms needed a lot of dlls, very much. It's very bad (IMHO). And This did led to what I stopped to use the Qt. I want to use a fast GUI and I/O, but Qt is a quite slow as compared with WinAPI. What will advise?

 

If your GUI framework is the slowest part of your application, either your application is so trivial it's not worth worrying about or you are doing something fundamentally wrong.

 

As Bacterius said, generally a graphics/physics engine doesn't use a desktop GUI framework at all. I still don't really know what exactly you want to do with the Win32 API?

 

Can you provide an example of the type of program you want to make and why you need a GUI framework for it.


if you think programming is like sex, you probably haven't done much of either.-------------- - capn_midnight

#8 Nawy   Members   -  Reputation: 127

Like
0Likes
Like

Posted 01 October 2013 - 10:31 PM


If your GUI framework is the slowest part of your application, either your application is so trivial it's not worth worrying about or you are doing something fundamentally wrong.
 
As Bacterius said, generally a graphics/physics engine doesn't use a desktop GUI framework at all. I still don't really know what exactly you want to do with the Win32 API?
 
Can you provide an example of the type of program you want to make and why you need a GUI framework for it.

For example: Create window and create a view of OpenGL to workspace of window. And I think that is the end to use GUI(not considering a I/O).  Then  I want a FAST I/O, and fast GUI. I don't to show to here my code, because it's quite a big. But I don't create more then one window.



#9 zfvesoljc   Members   -  Reputation: 443

Like
1Likes
Like

Posted 02 October 2013 - 05:17 AM

For multiplatform window handling (and other "basics"), you can use SDL.



#10 Nawy   Members   -  Reputation: 127

Like
0Likes
Like

Posted 02 October 2013 - 10:08 AM

For multiplatform window handling (and other "basics"), you can use SDL.

WoW!!! Wonderful! Never I heard about SDL. I test it, very good! Thank you!






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS