Jump to content

  • Log In with Google      Sign In   
  • Create Account


assainator

Member Since 12 Jul 2009
Offline Last Active Today, 08:39 AM

#5152162 Modern C++ looking for information

Posted by assainator on 07 May 2014 - 04:21 PM

I also recommend using http://en.cppreference.com/w/ over cplusplus.com for reference.




#5112321 AMD's Mantle API

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.




#5107477 classic fpu code goes out ?

Posted by assainator on 06 November 2013 - 10:47 AM

SSE is way better than x87(FPU). Every CPU from the last decade supports SSE, so some new compilers compile SSE by default.

 

BTW, AVX is better then SSE. This is true for AVX128 as well - AVX has non-destructive destination, so compilers can better utilize the xmm registers.

It should be noted that a large number of people have cpu's that can't use AVX.




#5096177 CS Degree - Is it worth it?

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)




#4902372 rendering bullets in asteroids game

Posted by assainator on 13 January 2012 - 09:48 AM

void RenderBullet()
{
glColor3f(0.0f,1.0f,0.0f);
glBegin(GL_POINTS);
glVertex3f(0.0f,0.5f+k,0.0f);
glEnd();
k+=0.1f;
glutSwapBuffers();
}

void RenderFunctionName()
{
	// Prepare OGL scene (clearBufferBit, etc.)

    // Draw scene
    DrawAstroids();
	DrawBullets();

    // Swap buffers
	glutSwapBuffers();
}



#4899904 making an app prompt for administrator privilages

Posted by assainator on 05 January 2012 - 04:04 AM

You could always work around the issue by creating the files in the user/appdata/ folder.


#4898679 My first ever render

Posted by assainator on 01 January 2012 - 10:15 AM

I have to agreement with Aluthreney on the touchpad, it does seem a bit cut out th body. Other then that it's quite good.

If I might point to some small issues:
- The corners are a bit sharp, they could use some smoothing.
- The same for the corners of the insets of the touchpad and the screen.


#4825128 Using NASM with VS 2010

Posted by assainator on 19 June 2011 - 10:58 AM

I didn't touch any pure assembly stuff for more than 6 years, so maybe my suggestion wont' work.

How about,

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.




EDIT:


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.





#4759685 I want to study the WIndows API, need help.

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.




Hope this helps,




assainator




PARTNERS