Page 3 of 4 FirstFirst 1234 LastLast
Results 31 to 45 of 46
  1. #31
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by Jason View Post
    Present isn't in another thread. Unless you explicitly spawn threads from with your hooked present, it will be executed from within the game's main thread. Just because you hook is defined within your dll, when it's actually called it will be called from whatever thread called Present in the first place as you're just redirecting execution into your function from whatever thread was calling Present.

    While it's true that single-core processors can handle multiple threads, it's not actually the same as multi-threading on a multi-core machine. Basically what happens on a single core system is that the processor rapidly context-switches between the various existing threads according to its task scheduler, it does this so rapidly that it appears all threads are running concurrently, when in reality only 1 thread at a time is being handled. Multiple core systems are capable of running a number of threads proportionate to the number of cores (except with processors capable of hyper-threading).
    I see, so i was thinking of rebuilding the base in general, and I came up with basic threads 3 threads (at run time)
    • Hooked Present/ What ever
    • HackThread
    • Menu Thread


    in the current base each menu will have its own thread, and that can be stress on a processor if to much menus are used. What i guess i can do is like how the Present and stuff have Frame per second, the menu thread can have Menus per second, and using this measurement change the sleep time. Because as more and more menus are being added the MPS will slow, and since the Input Operations and Drawing are all done on the Menu thread a varying Sleep time will keep the Menus well times.

    The Menus will be rendered in the Menu thread simply, a static array of Menus are all drawn in a for loop(cant wait till C++ AMP to test that stuff in this base). a Value in the Menu class to tell if the menu is initialized or not.

    Note: A lot of people must be saying that I am wasting my time with all this stuff in for these public bases. I will tell u this, I program for fun , I like to challenge myself. And mostly the VIP people are making they stuff and keeping it all to them self, and forgetting where most of them came from, THE PUBLIC HACK ZONE.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  2. The Following User Says Thank You to topblast For This Useful Post:

    [MPGH]Flengo (05-18-2012)

  3. #32
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Well, in reality I think you should be focusing more on optimizing your drawing methods than trying to spawn a dickload of threads everwhere, as well as optimizing the way you render menus.

    Consider this: Most D3D applications don't leverage threading for their drawing. They are capable of drawing large scenes at 60FPS or whatever in a single thread, drawing some simple boxes and text for your menu shouldn't be much more on top of the numerous models they create and draw every second.

    Fuck threading, look into caching. There's a lot of increased performance to be had there.

    I.e:

    You menu isn't moving at the moment? Cache the textures and all the drawing info, no need to rape the GPU with continuous texture locks every frame. Until the menu repositions itself there is no reason to keep putting textures into video memory.

    That's just one example, if you have more knowledge about D3D there are undoubtedly heaps of ways to reduce how much unnecessary processing you do every scene.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I don’t think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  4. The Following User Says Thank You to Jason For This Useful Post:

    Saltine (05-09-2012)

  5. #33
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by Jason View Post
    Well, in reality I think you should be focusing more on optimizing your drawing methods than trying to spawn a dickload of threads everwhere, as well as optimizing the way you render menus.

    Consider this: Most D3D applications don't leverage threading for their drawing. They are capable of drawing large scenes at 60FPS or whatever in a single thread, drawing some simple boxes and text for your menu shouldn't be much more on top of the numerous models they create and draw every second.

    Fuck threading, look into caching. There's a lot of increased performance to be had there.

    I.e:

    You menu isn't moving at the moment? Cache the textures and all the drawing info, no need to rape the GPU with continuous texture locks every frame. Until the menu repositions itself there is no reason to keep putting textures into video memory.

    That's just one example, if you have more knowledge about D3D there are undoubtedly heaps of ways to reduce how much unnecessary processing you do every scene.
    Thats true, but those application have the everything drawn from scratch, and my drawin method is already pretty much optimized. Where all the boxes and stuff are first stacked, then drawn as one. instead of drawing all of them individually.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  6. #34
    Shadow`'s Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    MN
    Posts
    636
    Reputation
    74
    Thanks
    3,014
    My Mood
    Relaxed
    Wow dude, just went through the code and I have to say this is very impressive!

  7. #35
    .DLL's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    165
    Reputation
    10
    Thanks
    14
    Gonna use this a menu test. X)
    Nice release. :3

  8. #36
    kevinsel's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    49
    Reputation
    10
    Thanks
    9
    thank you work base file

  9. #37
    demtrios's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    MPGH.Net
    Posts
    870
    Reputation
    10
    Thanks
    1,056
    My Mood
    Amused
    Good Job Bro !


    Cock CS since 26•03•2013

  10. #38
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Thanks, still noone can make a hack with it I bet ur all just stealing the detours
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  11. #39
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    who knows. i'm sure there will be a hack eventually

    commando: You're probably the best non-coder coder I know LOL


  12. #40
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    yea wee see about that
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  13. #41
    supercarz1991's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    6,285
    Reputation
    435
    Thanks
    3,715
    My Mood
    Doh
    Quote Originally Posted by topblast View Post
    yea wee see about that
    what i honestly believe it is, is the fact maybe this base is too "advanced" for the coder level of this section, and it's scaring some coders off since we haven't ever seen "multi-thread" and such before

    commando: You're probably the best non-coder coder I know LOL


  14. #42
    demtrios's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    MPGH.Net
    Posts
    870
    Reputation
    10
    Thanks
    1,056
    My Mood
    Amused
    Good Job Bro !


    Cock CS since 26•03•2013

  15. #43
    topblast's Avatar
    Join Date
    Mar 2010
    Gender
    male
    Location
    Far from around you Programmer: C++ | VB | C# | JAVA
    Posts
    3,607
    Reputation
    149
    Thanks
    5,052
    My Mood
    Cool
    Quote Originally Posted by demtrios View Post
    Good Job Bro !
    STFU already


    ---------- Post added at 02:15 PM ---------- Previous post was at 02:14 PM ----------

    Quote Originally Posted by supercarz1991 View Post
    what i honestly believe it is, is the fact maybe this base is too "advanced" for the coder level of this section, and it's scaring some coders off since we haven't ever seen "multi-thread" and such before
    the whole purpose of this base is so they can learn something new. A coder look at me and told me the only way to get a EXE to call is DLL is to hook it.
    I just like programming, that is all.

    Current Stuff:

    • GPU Programmer (Cuda)
    • Client/Server (Cloud Server)
    • Mobile App Development

  16. #44
    demtrios's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    MPGH.Net
    Posts
    870
    Reputation
    10
    Thanks
    1,056
    My Mood
    Amused
    I've even forgotten what had already been commented bad ta not know if the English is very good 'cause I used the google translator XD


    Cock CS since 26•03•2013

  17. #45
    iDarkness's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    the NetherLands
    Posts
    154
    Reputation
    10
    Thanks
    27
    My Mood
    Amazed
    Nice. Ima try and make a lil d3d for CA EU.

    "Just a Legend!"
    - B.Obama

    Get my newest WarRock Hack! The Obur Hack:

    __________________________________________________ __________________________________________________ _______
    Rescue the INTERNET!
    FUCK SOPA - WE WONT GIVE UP!


Page 3 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. With Topblast base
    By Pacnet2011 in forum Combat Arms Coding Help & Discussion
    Replies: 10
    Last Post: 09-05-2011, 01:43 PM
  2. Request for server Multi-Threading
    By Armadyl in forum Minecraft Mods
    Replies: 0
    Last Post: 07-08-2011, 07:14 PM
  3. [Help] Multi-threading a keylogger?
    By t7ancients in forum C# Programming
    Replies: 6
    Last Post: 05-24-2011, 07:24 PM
  4. Multi-threading = Timer no work!
    By ppl2pass in forum Visual Basic Programming
    Replies: 10
    Last Post: 11-20-2010, 10:35 PM
  5. THREAD: Home Made Explosives!
    By SadisticGrin in forum General
    Replies: 10
    Last Post: 10-25-2006, 03:15 PM