Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Darkplaces Code

#1
Has anyone messed with the engine code? It's a nasty mess with very little in the way of comments. I'm looking for the offset mapping shader, but I've been going in circles. I am determined to shred this code to pieces till I understand it. I want to optimize a good chunk of it if possible, it feels slow sometimes.
Reply

#2
grep "offsetmapping" *.c


--> gl_rmain.c

static const char *builtinshaderstring
Reply

#3
Ahhh, duh, though win7 doesn't have grep Sad That's what I was worried about, I didn't see any references to shader code. Means LH didn't write his own...

Edit:
Nvm, it's a large string, parsed by GL? Who cares...I'll start sorting through it.
Reply

#4
Hmmm... doesn't Win7 have some sort of indexing service for a fulltext search on files?

Anyway, yes, GLSL shaders are delivered as sourcecode to the driver, which then compiles them, optimizing for the hardware present.

Same is true for Cg. I think this also applies to HLSL, less sure on that, though.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Xonotic 0.8.5/DarkPlaces "Issues" Baker 2 939 02-24-2023, 03:01 PM
Last Post: Baker
  [META] DarkPlaces fork Lyberta 24 14,795 02-21-2023, 07:12 PM
Last Post: ballerburg9005
  [TUTORIAL] How to create a command - DarkPlaces engine C programming LegendGuard 1 2,364 03-31-2021, 03:43 PM
Last Post: LegendGuard
  Source code for Peach Mod daveblanchard 4 2,393 03-30-2021, 10:34 AM
Last Post: LegendGuard
  What was easy for you in development? (Darkplaces and QuakeC programming) LegendGuard 2 2,654 08-08-2020, 05:25 PM
Last Post: LegendGuard
  Trying to understand darkplaces source code wiefie 22 15,706 09-22-2017, 08:28 AM
Last Post: wiefie
  Module (music) support for Darkplaces (again) [test it] nilyt 8 8,454 04-21-2015, 08:24 PM
Last Post: BuddyFriendGuy
  Altering Xonotic Source Code perljamz10 7 13,004 02-26-2013, 06:19 PM
Last Post: Mr. Bougo
  darkplaces wiki down .... hutty 4 7,417 10-13-2012, 09:47 PM
Last Post: hutty
  Parallelization of Xonotic (and Darkplaces engine) Sarge999 19 21,608 11-21-2011, 03:22 PM
Last Post: Sarge999

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-