frame-rate

AVCapture capturing and getting framebuffer at 60 fps in iOS 7

余生颓废 提交于 2019-12-18 10:16:14
问题 I'm developping an app which requires capturing framebuffer at as much fps as possible. I've already figured out how to force iphone to capture at 60 fps but - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection method is being called only 15 times a second, which means that iPhone downgrades capture output to 15 fps. Has anybody faced such problem? Is there any possibility to increase

Sprite Kit Serious FPS Issue In Full Screen Mode on OS X

牧云@^-^@ 提交于 2019-12-17 23:25:08
问题 I'm making a fairly complex sprite kit game. I recently added support for OS X. I get 60 fps always, regardless of how my game is scaled when the window is resized (even when resized to max screen space). However, the moment I make my App enter "Full Screen," the fps drops to 30-40 fps and stays that way? But if I take my mouse cursor and reveal the menu bar while full screen is enabled, the fps goes back up to 60 fps! You can even test this bug by making a sprite kit game for mac in Xcode

how to get frame rate of video in android os?

∥☆過路亽.° 提交于 2019-12-17 19:32:48
问题 I want to get frame rate of video, but i don't want to use FFMPEG,JAVACV lib. is that possible to get frame rate of video in android? I read KEY_FRAME_RATE it's says that,"Specifically, MediaExtractor provides an integer value corresponding to the frame rate information of the track if specified and non-zero." but i don't know how to use it? if you know about how to get frame rate from video then answer here. 回答1: MediaExtractor extractor = new MediaExtractor(); int frameRate = 24; //may be

Timer using frameRate and frame counter reliable?

丶灬走出姿态 提交于 2019-12-17 17:23:00
问题 I'm using p5js to program an animation with a timer countdown. I set my timer up to be updated each frame within an object that is being animated by the draw() function in sketch. Because of this, setInterval() will not work for what I'm trying to do. I thought I could use the frameRate and a frame counter to decide if a second has passed: this.updateTimer = function(){ this.framecounter++; if(this.framecounter > frameRate()){ this.framecounter = 0; //increment seconds } } Is this reliable? I

Calculating frames per second in a game

给你一囗甜甜゛ 提交于 2019-12-17 15:02:26
问题 What's a good algorithm for calculating frames per second in a game? I want to show it as a number in the corner of the screen. If I just look at how long it took to render the last frame the number changes too fast. Bonus points if your answer updates each frame and doesn't converge differently when the frame rate is increasing vs decreasing. 回答1: You need a smoothed average, the easiest way is to take the current answer (the time to draw the last frame) and combine it with the previous

How to set camera FPS in OpenCV? CV_CAP_PROP_FPS is a fake

情到浓时终转凉″ 提交于 2019-12-17 12:15:25
问题 How to set Camera FPS? May be cvSetCaptureProperty(cameraCapture, CV_CAP_PROP_FPS, 30); ? But it's return HIGHGUI ERROR: V4L2: Unable to get property (5) - Invalid argument Because there is no implementation in highgui/cap_v4l.cpp static int icvSetPropertyCAM_V4L( CvCaptureCAM_V4L* capture, int property_id, double value ){ static int width = 0, height = 0; int retval; /* initialization */ retval = 0; /* two subsequent calls setting WIDTH and HEIGHT will change the video size */ /* the first

GUI running at 30 fps?

ぐ巨炮叔叔 提交于 2019-12-17 05:14:12
问题 While testing some real-time simulation code which uses a Swingworker I noticed my GUI always seems to run at 30 fps, no more, no less. I update the GUI everytime the user interacts with the application (like a mouse move) or when the process() method of the Swingworker is called. The Swingworker doesn't do anything right now, it just grabs the mouse location from the GUI and sends it back as a clone through the publish() and process() methods (I'm just doing this to see what I can and can't

GUI running at 30 fps?

余生长醉 提交于 2019-12-17 05:13:17
问题 While testing some real-time simulation code which uses a Swingworker I noticed my GUI always seems to run at 30 fps, no more, no less. I update the GUI everytime the user interacts with the application (like a mouse move) or when the process() method of the Swingworker is called. The Swingworker doesn't do anything right now, it just grabs the mouse location from the GUI and sends it back as a clone through the publish() and process() methods (I'm just doing this to see what I can and can't

How to set video capture frame rate?

有些话、适合烂在心里 提交于 2019-12-13 14:10:37
问题 So I have this basic video recording application working, but i'm wondering how I can set the frame rate (I think thats the right term) of the video capture, so when looking at the camera feed live on screen and also for that reduced capture rate to be captured when recording as well to give that slow blurry effect? my code so far is: HEADER // ViewController.h // VideoTest // // #import <UIKit/UIKit.h> #import <MediaPlayer/MediaPlayer.h> #import <MobileCoreServices/MobileCoreServices.h>

Cocos2dx 2.1.4 Game, Continuos FPS drop and never recovers

[亡魂溺海] 提交于 2019-12-13 04:50:33
问题 I am creating a game using cocos2dx 2.1.4. Its FPS drops continuously , and never recover. Please find the details as follows Background about the way I am doing things:- Its game about scrolling down some shapes, each shape is made up of some square blocks.I have 7 kind of blocks. All loaded in a Sprite Sheet and using these blocks from this sprite sheet I create a shape. A level file is consist of these shapes. I load two levels at the same time one onscreen and another off screen to make