Jump to content

  • Log In with Google      Sign In   
  • Create Account

The Joy of A Laptop

  • You cannot reply to this topic
24 replies to this topic

#1 dsm1891   Crossbones+   -  Reputation: 1310

Like
10Likes
Like

Posted 02 July 2013 - 06:42 AM

Hello,

 

its not really a 'coding' horror, more of a development horror, but oh well..

 

So there I was stress testing the latest version of the game I am currently developing, to my delight I only dropped an average of 1(ish) frame/second (198fps), which was a lot less that my expectations. I decide to call it a night, and upload the current version of the project and go to bed. When I next came to open the project, and run it (just because), to my horror, my frames kept dropping and dropping until they hit a steady 40fps sad.png

 

 

After a few hours of trying to get the performance back up, by removing new code / double checking im on performance mode etc etc, I realise I have a blinking symbol on the right of my screen.

Spoiler

 

There was a few hours of my life I wont see again.

 

Has anyone else had similar issues?

 

Cheers!



Sponsor:

#2 swiftcoder   Senior Moderators   -  Reputation: 10075

Like
8Likes
Like

Posted 02 July 2013 - 08:27 AM

Why did my game slow to a crawl, and all the shaders fallback to legacy mode? Because the damn laptop decided it was no longer plugged in, and switched to the integrated GPU.

 

 

Switchable discrete/integrated GPUs in laptops are the bane of my existence.


Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]


#3 dsm1891   Crossbones+   -  Reputation: 1310

Like
0Likes
Like

Posted 02 July 2013 - 09:17 AM

Why did my game slow to a crawl, and all the shaders fallback to legacy mode? Because the damn laptop decided it was no longer plugged in, and switched to the integrated GPU.

 

 

Switchable discrete/integrated GPUs in laptops are the bane of my existence.

haha, I just remembered another one.

 

Opening Android emulator load up times:

 

Unplugged "power saver mode": ??I got fed up?? 

Unplugged "Performance mode": 20 mins

plugged "Powersaver": 7 mins

plugged "Performance mode": 2 mins

 

now if I want to program for android, I make sure I boot up the emulator THEN unplug lol ph34r.png



#4 Bacterius   Crossbones+   -  Reputation: 8945

Like
0Likes
Like

Posted 02 July 2013 - 09:26 AM


Switchable discrete/integrated GPUs in laptops are the bane of my existence.

 

I hope there's a way to disable that. I was considering getting a laptop next year but this is basically denying you hardware when you need it angry.png


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis


#5 swiftcoder   Senior Moderators   -  Reputation: 10075

Like
0Likes
Like

Posted 02 July 2013 - 09:37 AM

I hope there's a way to disable that. I was considering getting a laptop next year but this is basically denying you hardware when you need it angry.png

Yeah, there is. On my Retina MacBook Pro it's just a toggle under the power management options in System Preferences.

The issue is remembering to toggle it - you really don't want to forget, and leave the discrete GPU force-powered when you head off to that 8-hour flight...

Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]


#6 wack   Members   -  Reputation: 1311

Like
4Likes
Like

Posted 02 July 2013 - 06:13 PM

Not quite like that, but I did recently have a moment with my laptop that made me feel like quite the idiot.

 

The keyboard stopped working, it just wouldn't type what I wanted. I even removed the keyboard and attempted to clean it. Didn't work.

 

So I just shrugged it off and thought I'll get a new one some day. Left it lying around for months.

 

Last week I started it again to se if there was anything on there to salvage to another computer. It turns out that

 

Spoiler


#7 Solid_Spy   Members   -  Reputation: 420

Like
0Likes
Like

Posted 28 July 2013 - 11:13 AM

I've actually never had a laptop, however i'm thinking of getting a galaxy.



#8 TheChubu   Crossbones+   -  Reputation: 4420

Like
2Likes
Like

Posted 28 July 2013 - 04:22 PM

I want the universe.


"I AM ZE EMPRAH OPENGL 3.3 THE CORE, I DEMAND FROM THEE ZE SHADERZ AND MATRIXEZ"

 

My journals: dustArtemis ECS framework and Making a Terrain Generator


#9 Cornstalks   Crossbones+   -  Reputation: 6995

Like
0Likes
Like

Posted 28 July 2013 - 04:47 PM

My laptop was charging. and thus automatically limiting the performance of my laptop.

That's weird. Your laptop limits your performance when it's plugged in and charging? I thought most laptops only limited things when they were unplugged running off of battery...


[ I was ninja'd 71 times before I stopped counting a long time ago ] [ f.k.a. MikeTacular ] [ My Blog ] [ SWFer: Gaplessly looped MP3s in your Flash games ]

#10 slicer4ever   Crossbones+   -  Reputation: 3906

Like
0Likes
Like

Posted 28 July 2013 - 05:48 PM

I want the universe.

I'll take one multi-verse please.


Check out https://www.facebook.com/LiquidGames for some great games made by me on the Playstation Mobile market.

#11 swiftcoder   Senior Moderators   -  Reputation: 10075

Like
0Likes
Like

Posted 28 July 2013 - 06:04 PM


Your laptop limits your performance when it's plugged in and charging? I thought most laptops only limited things when they were unplugged running off of battery...

I've run into a couple of cheapo laptops that overheat if you spin the GPU up while they are actively charging the battery.

 

As far as I can tell, the OEM pushed drivers that workaround the problem by clocking the GPU down until the battery is fully charged...


Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]


#12 Servant of the Lord   Crossbones+   -  Reputation: 19665

Like
3Likes
Like

Posted 28 July 2013 - 06:13 PM

Not laptop-related per-se, but I've coded a Minecraft Launcher so I can easily host a Minecraft server just when my siblings and I want to play. I installed the Launcher on their laptops and my desktop, and they can use the launcher to remotely boot up the server on my machine if they want to get on the shared server.

Because Minecraft is mining-heavy, and mining requires you to repeatedly jab the left mouse button for hours on end (bad designer, no twinkie). I integrated into the launcher an assignable keyboard key to hold down, that'll simulate the mouse clicks instead of wearing out our mouses. It doesn't give any competitive advantage, mining still takes just as long as normal.

This mouse-clicking behavior occurs whenever the assigned key is held down - I use the 'R' key.

 

The problem is, I frequently accidently launch the the launcher (and Microsoft Word, and Excel - those Win7 taskbar buttons are too close together) without realizing it. So while I'm programming, my text cursor would randomly jump to different lines of code... as if something clicked the mouse. This happens every time I type 'R' while coding, if the launcher happens to be running on my machine. Took me awhile to realize what was going on - I had a new mouse (for some unknown reason, the left mouse button was worn off my previous one dry.png), so I was assuming the new mouse was defective. laugh.png

 

Thankfully the Launcher has a window, and isn't just a service, or I'd still be confused.


It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#13 Bacterius   Crossbones+   -  Reputation: 8945

Like
0Likes
Like

Posted 28 July 2013 - 06:31 PM

Not laptop-related per-se, but I've coded a Minecraft Launcher so I can easily host a Minecraft server just when my siblings and I want to play. I installed the Launcher on their laptops and my desktop, and they can use the launcher to remotely boot up the server on my machine if they want to get on the shared server.

Because Minecraft is mining-heavy, and mining requires you to repeatedly jab the left mouse button for hours on end (bad designer, no twinkie). I integrated into the launcher an assignable keyboard key to hold down, that'll simulate the mouse clicks instead of wearing out our mouses. It doesn't give any competitive advantage, mining still takes just as long as normal.

This mouse-clicking behavior occurs whenever the assigned key is held down - I use the 'R' key.

 

The problem is, I frequently accidently launch the the launcher (and Microsoft Word, and Excel - those Win7 taskbar buttons are too close together) without realizing it. So while I'm programming, my text cursor would randomly jump to different lines of code... as if something clicked the mouse. This happens every time I type 'R' while coding, if the launcher happens to be running on my machine. Took me awhile to realize what was going on - I had a new mouse (for some unknown reason, the left mouse button was worn off my previous one dry.png), so I was assuming the new mouse was defective. laugh.png

 

Thankfully the Launcher has a window, and isn't just a service, or I'd still be confused.

 

Hmm. Sounds similar to an issue I had with X11 where clicking the middle mouse button would paste whatever text you highlighted last, wrecking havoc in source code (especially when scrolling). Except I couldn't find a satisfactory way to disable this - unwanted - legacy behaviour on a global basis. You get used to it, but it's rather irritating the first few weeks (*compile error* *compile error* *compile error* "raah" *throws mouse out of window*)


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis


#14 Paradigm Shifter   Crossbones+   -  Reputation: 5380

Like
0Likes
Like

Posted 28 July 2013 - 07:48 PM

Holding down the left mouse button in minecraft works for me? It auto-repeats?


"Most people think, great God will come from the sky, take away everything, and make everybody feel high" - Bob Marley

#15 swiftcoder   Senior Moderators   -  Reputation: 10075

Like
0Likes
Like

Posted 28 July 2013 - 07:55 PM


Sounds similar to an issue I had with X11 where clicking the middle mouse button would paste whatever text you highlighted last, wrecking havoc in source code (especially when scrolling).

I don't think I've ever accidentally clicked the middle mouse button...

 

That aside, middle-mouse copy/paste is one of those features that I have a hard time living without, whenever I land on a Windows machine, or get stuck with a two-button mouse.


Tristam MacDonald - Software Engineer @Amazon - [swiftcoding]


#16 Servant of the Lord   Crossbones+   -  Reputation: 19665

Like
0Likes
Like

Posted 28 July 2013 - 08:30 PM

Holding down the left mouse button in minecraft works for me? It auto-repeats?

 

I don't know if they changed it, I haven't played since a few versions before the official release.

 

[Edit:] Now that I think about it, it wasn't mining, it was farming monsters that caused my siblings to rapid-click repeatedly. IIRC, at least while still in beta, you couldn't hold the mouse button down for swinging the sword. So I guess the designers can have half their twinkie back.


Edited by Servant of the Lord, 28 July 2013 - 08:32 PM.

It's perfectly fine to abbreviate my username to 'Servant' rather than copy+pasting it all the time.
All glory be to the Man at the right hand... On David's throne the King will reign, and the Government will rest upon His shoulders. All the earth will see the salvation of God.
Of Stranger Flames - [indie turn-based rpg set in a para-historical French colony] | Indie RPG development journal

[Fly with me on Twitter] [Google+] [My broken website]

[Need web hosting? I personally like A Small Orange]


#17 wodinoneeye   Members   -  Reputation: 834

Like
0Likes
Like

Posted 25 August 2013 - 07:48 PM

Long ago starting DIrectX programming I was aplalled out all the wrapper/skeleton code stuff you needed just to get  an Application to run (use the examples from the SDK and its very obvious).

 

Unfortunatrely with the spectrum of targeted hardware it was necessary to have to be able to determine if the hardware the Application/drivers was to run on supported various operations  (or had to be emulated softwarewise)  -- even just to have an advanced enuf DirectX driver version.  A good chunk of the App code was to do that.

 

Maybe those days are back now with Apps on these handheld things becoming popular  (ack -- some of the processors dont even have native Floating point ops !!!)   and certainly with their power awareness and sleep/wake strategies etc...

 

 

 

---

 

Oh and you are lucky you dont have the monster laptop I had years ago that if you tried to hold it in your lap you would literally burn your legs (full power CPU and GPU in the thing and retard designers (a well known company) puting the air blower vents on the bottom instead of the sides )


Edited by wodinoneeye, 25 August 2013 - 07:54 PM.

--------------------------------------------Ratings are Opinion, not Fact

#18 Bacterius   Crossbones+   -  Reputation: 8945

Like
0Likes
Like

Posted 25 August 2013 - 08:13 PM


Oh and you are lucky you dont have the monster laptop I had years ago that if you tried to hold it in your lap you would literally burn your legs (full power CPU and GPU in the thing and retard designers (a well known company) puting the air blower vents on the bottom instead of the sides )

 

Let me guess.. Acer? I had one of theirs and it had the vents on the bottom as well. The damn thing kept overheating.


The slowsort algorithm is a perfect illustration of the multiply and surrender paradigm, which is perhaps the single most important paradigm in the development of reluctant algorithms. The basic multiply and surrender strategy consists in replacing the problem at hand by two or more subproblems, each slightly simpler than the original, and continue multiplying subproblems and subsubproblems recursively in this fashion as long as possible. At some point the subproblems will all become so simple that their solution can no longer be postponed, and we will have to surrender. Experience shows that, in most cases, by the time this point is reached the total work will be substantially higher than what could have been wasted by a more direct approach.

 

- Pessimal Algorithms and Simplexity Analysis


#19 wodinoneeye   Members   -  Reputation: 834

Like
0Likes
Like

Posted 29 August 2013 - 12:02 AM

 


Oh and you are lucky you dont have the monster laptop I had years ago that if you tried to hold it in your lap you would literally burn your legs (full power CPU and GPU in the thing and retard designers (a well known company) puting the air blower vents on the bottom instead of the sides )

 

Let me guess.. Acer? I had one of theirs and it had the vents on the bottom as well. The damn thing kept overheating.

 

 

Actually was a Toshiba  but was quite a while ago (10+ years) .  Another brainfart on their design was having the CD button such that if you picked the monster up holding on either side at least half the time the button was triggered and the CD shelf would want to open.   Odd thing was that when its sitting in your lap (or on a large book on your lap)  it was almost impossible to find the button to make it open when you WANTED to open it  (it was flush with the side - not recessed which might have prevented both problems)


Edited by wodinoneeye, 29 August 2013 - 12:02 AM.

--------------------------------------------Ratings are Opinion, not Fact

#20 n3Xus   Members   -  Reputation: 707

Like
0Likes
Like

Posted 06 September 2013 - 06:02 AM

NUM LOCK was on.

Had the same problem: plugged a desktop keyboard to laptop once and it enabled num lock, from then on my laptop keyboard had numlock enabled.
 

I figured it out after 2 months ph34r.png


Edited by n3Xus, 06 September 2013 - 06:03 AM.






PARTNERS