Pages: « 1 2
  Print  
Author Topic: Shaders  (Read 6366 times)
Offline (Male) Goombert
Reply #15 Posted on: September 02, 2013, 02:16:37 AM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
Ok, now that, is fucked up, your segfaulting on locking a vertex buffer with a void pointer? How the fuck is that even occurring for you? Try it out on like a different game that just uses a model no basic shapes or d3d_draw_wall but d3d_model_wall and stuff.
« Last Edit: September 02, 2013, 04:43:00 AM by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Goombert
Reply #16 Posted on: September 07, 2013, 02:36:58 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
Hey guys just to update you again on this, I rewrote the cubes to use flat shading as was requested and switched it to my triangle fan batcher...



ENIGMA now out performs Studio by nearly 200 frames per second, the RAM usage went down to 45,000K
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) time-killer-games
Reply #17 Posted on: September 07, 2013, 06:40:39 PM

Contributor
Location: Virginia Beach
Joined: Jan 2013
Posts: 1166

View Profile Email
Nice. :-)
Logged
Offline (Male) Goombert
Reply #18 Posted on: September 07, 2013, 06:42:24 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
@TKG that is provided you switch the code in AddCube to d3d_model_block from what they had, so my model batcher handles it instead of just a huge fuck triangle list.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) Kimidori
Reply #19 Posted on: September 09, 2013, 11:02:20 PM
Member
Joined: Sep 2013
Posts: 4

View Profile
can I have that cube demo? I want to test it with YYC, can't find it anywhere.
Logged
Offline (Male) Goombert
Reply #20 Posted on: September 09, 2013, 11:18:42 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
@Kimidori, when you launch/open Studio just select the "Demos" tab and run it, the GMX reader for LateralGM is not finished yet, I had to do a few special things to load it into ENIGMA. Nothing code wise, I've added the draw GUI event it's just postponed references with my reader not reading objects sprites and certain properties yet.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Male) Goombert
Reply #21 Posted on: August 10, 2014, 03:46:11 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
I normally hate to bump topics but this is really important. I have now found an optimization for OpenGL1 static models that we were originally utilizing. Originally with fixed-function immediate mode and call lists there was drastic memory usage and crashing for some of us, I then sped models up by implementing vertex arrays, and now by compiling those with a gl call list I can buffer all of that to the GPU and remain compliant with GL1.1 which everyone's hardware supports including polygonz.

The framerate went from 13fps to 201 fps. The ram usage went from 100-113MB's down to 49MB's and then to 44MB's with the addition of clearing the data only for static models once they are buffered.
Note: Do not compare this to the earlier results of other systems, it was tested on a better graphics card, this system now outperforms GL3 and D3D9 on my computer.


Project Mario has also gone from 237/239fps for me to 261fps. These performances boosts should be for most games, but especially for those with very large models that have plenty of polygons.

This is the pull request where I am working on the improvements.
https://github.com/enigma-dev/enigma-dev/pull/788

Evidence of Display List and GL1.0 compliance.
http://wiki.processing.org/w/Display_List
« Last Edit: August 10, 2014, 03:52:17 PM by Robert B Colton » Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) Darkstar2
Reply #22 Posted on: August 10, 2014, 06:13:39 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
I like how you use swear words every 10 syllables and yet ironically was the one whining about them in ENIGMA.

Was it him or was it yourself who whined about it, I reckon it was you who mentioned something about it.  There is lots of that in the source code even, by ENIGMA's own developers....for starters the developers should practice what they preach and that goes for everyone and stop putting the blame on users for giving the community a bad name because I strongly disagree with that.

As to Robert I think in this case the cussing was appropriate and made a strong point about GM, which I fully agree with.  I mean people pay for software that is bloated and expensive, and finding out that FREE software that is far from even being optimised still blows GM in terms of size and speed, that is a major **** in the arse for those of us who paid money for said software.

@Robert:  Wait for GMS 2 coming out next year, it'll probably be just as slow if not slower.  They took the lazy approach from day 1 and will not change their ways any time soon.  Their focus is getting the product out the door and cashing out $$$.  ENIGMA's development is slow but it aims to get things done right and as fast as possible in terms of performance.  Now imagine if ENIGMA cut ties with GM and did its OWN engine, with similar features to GM, with its own set of functions and more, it would be even better......

LOL @ the 25fps of OGL1
I didn't realise it was that bad.

BTW these changes you are doing, only affect 3D stuff right ? Does not affect (either positively or negatively) 2D stuff, which most people use, right ?
« Last Edit: August 10, 2014, 06:15:16 PM by Darkstar2 » Logged
Offline (Male) Goombert
Reply #23 Posted on: August 10, 2014, 06:21:07 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
No that quick optimization only applies to very large 3D models, Project Mario only got a slight boost because it really only has two high polygonal models, Mario and Yoshi. The rest is me redesigning threads and fixing bugs.

Also you should relax about the other stuff, I generally don't complain about anything anymore, ENIGMA being laid back is a very nice feature of this community that I've come to respect, second we should still remain professional on the outside, there is a time and place for everything, and I think the balance is kept well.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) Darkstar2
Reply #24 Posted on: August 10, 2014, 06:50:10 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
I love irony....
but you did not get the meaning.


Also you should relax about the other stuff, I generally don't complain about anything anymore,

Actually nothing wrong with complaining, when backing up arguments more than just saying "this sucks ****" etc..... you and many of us here have backed up with solid FACTS your complaints, for some, in lengthy detail :D  Besides I don't think people care, people want results and will judge ENIGMA by what it delivers - some of you clearly have not seen the bashing and flaming and unprofessional nature of many gaming and software forums out there, as I observed through the years.......:P  That's what moderators are there for.

Quote
ENIGMA being laid back is a very nice feature of this community that I've come to respect, second we should still remain professional on the outside, there is a time and place for everything, and I think the balance is kept well.

I agree however we shouldn't hold back on saying what we think just to please others.

You sure have not held back :P and neither have many developers of ENIGMA :P It should not stop its users either.

There are 2 differences between GMC and ENIGMA.

Here, if you don't agree with the administrator or developer, you still get to keep your account and post, and your post won't get deleted, edited or locked.

Is the GMC any more "professional" quite the opposite........
Logged
Offline (Unknown gender) egofree
Reply #25 Posted on: August 11, 2014, 04:13:42 AM
Contributor
Joined: Jun 2013
Posts: 603

View Profile Email
I have now found an optimization for OpenGL1 static models that we were originally utilizing

This optimization seems great Robert, but i wonder : does it apply only to OpenGL 1.1 ? I am not sure if it is worth working on a version of a technology which is 17 years old ! (OpenGl 1.1 was released in 1997).
Logged
Offline (Unknown gender) TheExDeus
Reply #26 Posted on: August 11, 2014, 07:16:49 AM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Quote
Was it him or was it yourself who whined about it, I reckon it was you who mentioned something about it.  There is lots of that in the source code even, by ENIGMA's own developers....for starters the developers should practice what they preach and that goes for everyone and stop putting the blame on users for giving the community a bad name because I strongly disagree with that.
This topic is a year old, so yes, he was the one who made a commit just to remove swear words from ENIGMA (and the steaming pile of **** error message) and in the commit message said how we should be more "professional". And I agreed, yet his topic's kept being filled with colorful language, thus the irony. He has mostly stopped doing that since.
Also, to my knowledge, I have never used language like that in ENIGMA's source.
Logged
Offline (Unknown gender) Darkstar2
Reply #27 Posted on: August 11, 2014, 07:26:19 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email
This topic is a year old, so yes, he was the one who made a commit just to remove swear words from ENIGMA (and the steaming pile of **** error message) and in the commit message said how we should be more "professional". And I agreed, yet his topic's kept being filled with colorful language, thus the irony. He has mostly stopped doing that since.

Actually sometimes when used reasonably there is no harm in forum post, but there are some things I found in the source code, beyond unacceptable, certain things that could have serious implications, it goes far beyond cussing, and I won't go into it, but
agree, none of that shit should be present in the source code of all places, especially not racism, bigotry or slandering other companies or persons.

As far as keeping supporting old technology,
like OGL 1, that is a good point, you don't see many new generation games work with old hardware, games now require minimum DX9.....however, let's be honest about the type of games people make with crap studio and ENGIMA, it's not exactly state of the art.  Most of the rubbish people make in GM could easily be achieved in OGL1.  Very few people raise the bar and will do 3D stuff or stuff requiring advanced functionality.

I've actually seen some really amazing stuff done with GM, a really nice graphically rich FPS with reflections, grass and commercial quality.....but those are pins in a bloody hay stack. :D  Why because GayMaker (and ENIGMA) makes it easy for people to make 2D games, but the better games, 3D stuff, shaders, modeling, requires more advanced skill that most people using these software don't have :D
Logged
Offline (Male) Goombert
Reply #28 Posted on: August 11, 2014, 11:26:51 PM

Developer
Location: Cappuccino, CA
Joined: Jan 2013
Posts: 3110

View Profile
Well a lot of that can be attributed to the cultural, social, and environmental influences I am no longer around people that make me want to curse like a maniac, or rather not as frequently. The reason for me being so contradictory is because I merely found swearing that intrusive to the users experience with our software to be a nuisance and also not very helpful.

Also I make a practice of putting my name on comments left in the source whenever they are extraneously descriptive, and therefore responsible for such comments. At any rate, this is off-topic, so please let's get back on topic.
Logged
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.

Offline (Unknown gender) sorlok_reaves
Reply #29 Posted on: August 12, 2014, 02:14:50 PM
Contributor
Joined: Dec 2013
Posts: 261

View Profile
This topic is a year old, so yes, he was the one who made a commit just to remove swear words from ENIGMA (and the steaming pile of **** error message) and in the commit message said how we should be more "professional".

Don't worry, there's still a few rambling cursing error messages in the source (mostly in the compiler and instance system). It's a testament to ENIGMA's quality, though, since no-one ever actually sees them (since the compiler and instance system are fairly robust).
Logged
Pages: « 1 2
  Print