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
  0.8.6 and git - Stutter points / Profiling / Code Optimization dagelf 1 3,396 06-08-2024, 04:16 PM
Last Post: dagelf
  Trying to understand darkplaces source code wiefie 23 17,622 06-08-2024, 11:40 AM
Last Post: dagelf
  Xonotic 0.8.5/DarkPlaces "Issues" Baker 2 1,317 02-24-2023, 03:01 PM
Last Post: Baker
  [META] DarkPlaces fork Lyberta 24 17,124 02-21-2023, 07:12 PM
Last Post: ballerburg9005
  [TUTORIAL] How to create a command - DarkPlaces engine C programming LegendGuard 1 2,612 03-31-2021, 03:43 PM
Last Post: LegendGuard
  Source code for Peach Mod daveblanchard 4 2,920 03-30-2021, 10:34 AM
Last Post: LegendGuard
  What was easy for you in development? (Darkplaces and QuakeC programming) LegendGuard 2 3,069 08-08-2020, 05:25 PM
Last Post: LegendGuard
  Module (music) support for Darkplaces (again) [test it] nilyt 8 9,092 04-21-2015, 08:24 PM
Last Post: BuddyFriendGuy
  Altering Xonotic Source Code perljamz10 7 13,744 02-26-2013, 06:19 PM
Last Post: Mr. Bougo
  darkplaces wiki down .... hutty 4 7,975 10-13-2012, 09:47 PM
Last Post: hutty

Forum Jump:


Users browsing this thread:
1 Guest(s)

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