Posted by assainator
on 26 November 2013 - 08:32 PM
I mean a total control on the GPU scheduler, like control the time slice, the priority of every thread and change the scheduling algorithm, not just the command list queue... Yes, I know that this probably will never happen (and Yes, I know that the Catalyst driver team could kill me for suggesting this XD), but it could open infinite possibilities...
From what I understood from the article, you can assign those command list queues to the various 'engines' (as they call them in the article) yourself. Meaning you have total control of the GPU, in turn meaning you can write your own scheduler for the GPU.
Posted by assainator
on 23 September 2013 - 10:08 AM
Worth it a lot. I'm currently doing Information Systems, and I'm planning someday to get a BS in CS. Every teacher recommends. But CS is something that you can learn at home. Just google CS books, read, understand the concepts and implement them.
It should be noted that this mostly depends on personal experiences.
I myself have only visited 60-70% of the lectures given in my first year. Why? Because I didn't need the courses that were trying to teach me how to program (didn't need means I passed them with very good grades in this case). However, the courses related to algorithms, math, data structures, math and formal languages (to name a few) were very useful for me as I only knew the absolute basics of those subjects. At the moment, I'm visiting close to 90-95% of the lectures as I really benefit from them.
A book telling you a problem can be solved with a certain equation and another problem can be solved with another equation is something totally different than a teacher describing how those equations are formed and how they are (not) related to each other. The same can be said for programming paradigms: every person with some decent knowledge about programming can learn a paradigm. Period. However, how certain paradigms are related, can (not) be combined and/or why they are (not) useful is something a lot of internet resources and books neglect to point out. (I know, there are of course exceptions to this)
My point is: while books and internet resources will/might (depends on your point of view) tell you what you need to know, teachers also tell you what you should want to know. (again, there are exceptions)
I didn't touch any pure assembly stuff for more than 6 years, so maybe my suggestion wont' work.
1, In Pre build, call NASM to assembly all your .asm files and generate .obj files. Maybe via a makefile so no need to build all .asm files each time. 2, Let VC compiles all non-asm stuff. 3, Let VC links the .obj files generated by NASM.
I can't test it since I only have VC 2008 Express.
If it won't work, how about put your .asm files to another project and generate .lib file and let VC links to it?
One off topic question, is it really necessary to use pure .asm files? Is the VC inline asm support not enough?
Thanks for the responses! I didn't think of using libraries, which is probably the best way.
@wqking: It's for learning purposes, I want to learn to program functions in asm that can be called from a C program.
@edd2: No I haven't yet, first wanted to know if there was an easier solution. For now I'll settle on using libraries, when I've got more time I'll try to read the article and create a ruleset nasm.
I was to curious about rulesets so I used page edd2 suggested. I have it working for now. There are still some commandline options I have to include but I'm in no hurry.
Thanks edd2 for just giving me that little push I needed.
Posted by assainator
on 16 January 2011 - 11:28 AM
I second mhagain, the win32 API isn't that hard BUT results into very, very unclean code.
Now look the bottom this page to see a example of a very small pure win32 api program. If you are fine with the idea of writing this kind of code, this is the way to go.
But if you come from a OO world, you should probably go with a OO framwork like wxWidgets or QT.
If you do want to use the win32 api, you NEED the 'Programming windows 5th edition' by Charles Petzold. And you need your favorite search engine to find documentation on the win32 api. Often you will be browsing in the msdn documentation.