Results 1 to 5 of 5

Thread: Script using massive amounts of cpu?

  1. #1
    Join Date
    Sep 2016
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default Script using massive amounts of cpu?

    ok sorry for this stupid title, I found out that RS just takes 10% of my cpu, it wasnt the scripts fault.

    Im wondering, how do java clients that have tabs, use so little cpu compared to browser or offcial client?

    I can run more than 20 rs clients using java bots's tabs, but I can only run 7 offcial clients.

    I need to figure out whats going on with those tabs.

  2. #2
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Google Chrome? What are your specs on your computer?

  3. #3
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    maybe they all run through one java process, reducing the total overhead?

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by SimbaOp View Post
    ok sorry for this stupid title, I found out that RS just takes 10% of my cpu, it wasnt the scripts fault.

    Im wondering, how do java clients that have tabs, use so little cpu compared to browser?
    Because browser doesn't actually render in process.. Chrome uses IPC (Inter-Process Communication -- the same way Simba and SMART communicate with eachother) to render on the tab.. Each tab is its own process, and each one sends the image back to the main process to render on top of the main window. For Java bots, they don't have to do all that overhead. Bad part is that if one tab in java crashes, the entire bot is screwed.. If one in Chrome crashes, that process has crashed so just that tab is affected.

    or Official Client?
    Official client uses JAWT to load and render the applet in order to distribute the client as an EXE with an installer.. but Java bots just distribute a jar. Also might depend on what SDK is used.. Official client I think uses OpenJDK and JDK uses Oracle/Sun JDK.



    Maybe..
    I am Ggzz..
    Hackintosher

  5. #5
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    Official client uses JAWT to load and render the applet in order to distribute the client as an EXE with an installer.. but Java bots just distribute a jar. Also might depend on what SDK is used.. Official client I think uses OpenJDK and JDK uses Oracle/Sun JDK.
    Worth adding they use a modified version of OpenJDK.

    OpenJDK files modified by Jagex Ltd
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    MAY 2010
    ~~~~~~~~

    Files changed to fix the Windows build on Vista:
    corba/make/common/shared/Compiler-msvc.gmk
    corba/make/common/shared/Defs-windows.gmk
    jdk/make/common/shared/Compiler-msvc.gmk
    jdk/make/common/shared/Defs-windows.gmk
    jdk/make/common/shared/Sanity.gmk
    jdk/make/sun/font/Makefile
    jdk/make/tools/freetypecheck/Makefile
    make/sanity-rules.gmk

    Files changed to allow operation within a flat directory structure:
    hotspot/src/os/windows/vm/hpi_windows.cpp
    hotspot/src/os/windows/vm/os_windows.cpp
    hotspot/src/share/vm/memory/dump.cpp

    File changed to fix create.bat's creation of Visual Studio projects for building HotSpot:
    hotspot/src/share/tools/MakeDeps/WinGammaPlatformVC7.java

    File changed to remove unnecessary and out of date loadLibrary call:
    jdk/src/share/classes/sun/font/FontManagerNativeLibrary.java
    http://www.runescape.com/a=65/downlo...er-src.tar.bz2
    Last edited by Kasi; 09-16-2017 at 04:14 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •